n, t = gets.chomp.split(' ').map(&:to_i)
list = n.times.map { gets.chomp.split(' ').map(&:to_i) }

can_route = list.select { |cost, time| time <= t }

if can_route.empty?
  puts 'TLE'
  exit
end

puts can_route.min_by {|cost, time| cost }[0]
