n,t = gets.split.map(&:to_i)
returnable_way_cost = []

n.times do
  c, time = gets.split.map(&:to_i)
  if time <= t
    returnable_way_cost.push(c)
  end
end

if c.length == 0
  puts 'TLE'
else
  puts c.min
end 
