N,T = readline.split.map(&:to_i)

min = Float::INFINITY

N.times do |i|
  c,t = readline.split.map(&:to_i)
  if t <= T and c < min
    min = c
  end
end
if min == Float::INFINITY
  puts 'TLE'
else
  puts min
end
