N, T = gets.split.map(&:to_i)
min = 1001
N.times do
  cost, time = gets.split.map(&:to_i)
  if T >= time
    if min > cost
      min = cost
    end
  end
end
if min == 1001
  puts "TLE"
else
  puts min
end
