import scala.io.StdIn._
val Array(n, t) = readLine().split("\\s").map(_.toInt)

var min_cost = 9999
for (_ <- 1 to n) {
  val Array(c,ti) = readLine().split("\\s").map(_.toInt)
  if (ti<=t){
    min_cost = List(min_cost,c).min
  }
}
if (min_cost==9999){
  println("TLE")
} else{
  println(min_cost)
}