import java.util.*

fun main(args: Array<String>) {
    val mod = 1000000007L
    val (N, T) = readLine()!!.split(" ").map(String::toInt)

    var min:Int? = null
    for (n in 0 until N) {
        val (c, t) = readLine()!!.split(" ").map(String::toInt)
        if (t > T) continue

        min = if (min == null) c else Math.min(min, c)
    }
    println(min?:"TLE")
}