N, T = gets.split.map(&:to_i)
route_map = []
min_route = {c: 2000, t: 0}

N.times do
  c, t = gets.split.map(&:to_i)
  route_map << {c: c, t: t}
end

route_map.each do |item|
  if (min_route[:c] > item[:c]) && (item[:t] <= T)
    min_route = item
  end
end

if min_route == {c: 2000, t: 0}
  puts "TLE"
else
  puts min_route[:c]
end
