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