def ascan; gets.split.map(&:to_i); end

N, T = ascan

cost = nil
N.times do |i|
    c,t = ascan
    if t <= T
        cost = c if !cost || c < cost
    end
end

if cost
    p cost
else
    puts "TLE"
end