import scala.io.StdIn
object Main extends App {
  val Seq(n, t) : Seq[Int] = StdIn.readLine.split(" ").map(_.toInt)
  val cts = Range(0, n)
    .map(_ => (StdIn.readLine.split(" ").map(_.toInt)))
    .map(s => (s(0), s(1)))
  println(cts.sorted.find(_._2 <= t).map(_._1.toString).getOrElse("TLE"))
}
