import scala.io.StdIn

object Main extends App {
  
  val Array(n, t) = StdIn.readLine().split(" ").map(_.toInt)
  
  val r = (0 until n).map( _ => StdIn.readLine().split(" ").map(_.toInt))
    .filter(p => p(1) <= t)
    .sortBy(e => e(0))
 
  println(if(r.isEmpty) "TLE" else r(0)(0))
}
