object Main{
  def main(args:Array[String]):Unit={
    var NT =readLine.split(" ").map(x => x.toInt)
    var res = scala.Int.MaxValue
    for(i <- 0 until NT(0)){
      var tmp = readLine.split(" ").map(x => x.toInt)
      if(NT(1)>=tmp(1)) res=scala.math.min(res,tmp(0))
    }
    if(res==scala.Int.MaxValue) println("TLE")
    else println(res)
  }
}