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

    ct.filter { it[1] <= T }.minBy { it[0] }?.let { it[0] }.let {
        (it ?: "TLE").let(::println)
    }
}