import java.util.*

fun main(args:Array<String>) {
    val sc = Scanner(System.`in`)

    val N:Int = sc.nextInt()
    val T:Int = sc.nextInt()

    var i:Int = 0
    var ans:Int = 0

    while (i<N) {
        var c = sc.nextInt()
        var t = sc.nextInt()

        if (t <= T) {
            if (ans == 0) {
                ans = c
            } else {
                ans = Math.min(ans, c)
            }
        }
        i += 1
    }
    if (ans == 0) {
        println("TLE")
    } else {
        println(ans)
    }
}
