let n, t0 = Scanf.scanf " %d %d" @@ fun a b -> a, b
let cts = Array.init n @@ fun _ -> Scanf.scanf " %d %d" @@ fun a b -> a, b
let ans = Array.fold_left (fun m (c, t) -> if t <= t0 then min m c else m) max_int cts
let _ = if ans = max_int then print_endline "TLE" else Printf.printf "%d\n" ans