fun main() {
    val (n,t)= readLine()!!.split(" ").map { it.toInt() }
    val ct= Array(n){ readLine()!!.split(" ").map { it.toInt() }}
    var ans:Int?=null
    for ((cos,time) in ct){
        if (time>t){continue}
        if (ans==null){ans=cos}
        else{ans=Math.min(ans, cos)}
    }
    if (ans==null){
        println("TLE")
    }else{
        println(ans)
    }
}