import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val n, t = sc.nextInt
  val ans = Vector.fill(n)((sc.nextInt, sc.nextInt))
      .sortBy(_._1)
      .collectFirst { case (c, tt) if tt <= t => c }
      .getOrElse("TLE")
  println(ans)
}
