object Main extends App {
  val in = new java.util.Scanner(System.in)
  val N, T = in.nextInt
  case class Route(cost: Int, time: Int)
  val routes = List.fill(N)(Route(in.nextInt, in.nextInt))
  println(routes.filter(_.time <= T) match {
    case Nil => "TLE"
    case l => l.minBy(_.cost).cost
  })
}