open System

let NT = stdin.ReadLine().Split(' ');
let N = NT.[0] |> int;
let T = NT.[1] |> int;

let mutable min = 1000000;
for i in 0..N-1 do
    let ct = stdin.ReadLine().Split(' ');
    let c = ct.[0] |> int;
    let t = ct.[1] |> int;
    if t <= T then
        min <- Math.Min(min, c)


if min = 1000000 then
    "TLE" |> printfn "%s"
else
    min |> printfn "%d"
