n, t = gets.split.map(&:to_i)
routes = n.times.map{gets.split.map(&:to_i)}
selectedRoutes = routes.select{|x| x[1] <= t}.sort_by{|x| x[0]}
if selectedRoutes.empty?
  puts "TLE"
  exit 0
end
p selectedRoutes[0][0]