n, t = gets.split().map{|num| num.to_i}
ct = []
n.times do
  cn, tn = gets.split().map{|num| num.to_i}
  if t >= tn then
    ct.push([cn, tn])
  end
end

ct.sort!
if ct == [] then
  puts "TLE"
else
  puts ct[0][0]
end
