
N,X = gets.chomp.split.map(&:to_i)
min = 1e9

for i in 1..N do
    c,t = gets.chomp.split.map(&:to_i)
    if(t<=X)
        min=[min,c].min
    end
end
if(min==1e9)
    puts "TLE"
else
    puts min
end