let NT: [Int] = readLine()!.split(separator: " ").map { Int($0)! }
var res = Int(1e5)
var can = false
for _ in 1...NT[0] {
    let ct: [Int] = readLine()!.split(separator: " ").map { Int($0)! }
    if ct[1] <= NT[1] {
        can = true
        res = min(res, ct[0])
    }
}
print(can ? res : "TLE") // (๑•ૅㅁ•๑)