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

min_c = Float::INFINITY
N.times do
  c, t = gets.split.map(&:to_i)
  min_c = c if t <= T && (min_c.nil? || min_c > c)
end

if min_c < Float::INFINITY
  puts min_c
else
  puts 'TLE'
end