object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N,T = sc.nextInt()
  val a = List.fill(N,2)(sc.nextInt()) filter (_(1)<=T)
  println(
    if(a==Nil) "TLE"
    else a.sortBy(_.head).head.head
  )
}