let NT: [Int] = readLine()!.split(separator: " ").map { Int($0)! }
var res: Int = 0
for _ in 1...NT[0] {
  let ct: [Int] = readLint()!.split(separator: " ").map { Int($0)! }
  res = ct[1] > NT[1] ? res : min(res, ct[0])
}
print(res!=0 ? res : "TLE")