n, t = gets.split.map(&:to_i)
costs = []
times = []
n.times do
  cost, time = gets.split.map(&:to_i)
  costs.push(cost)
  times.push(time)
end

indexs = []
times.each_with_index do |time , i|
  if time <= t
    indexs.push(i)
  end
end

newCosts = []
indexs.each do |i|
  newCosts.push(costs[i])
end

if indexs.size < 1
  puts "TLE"
  exit
else
  puts newCosts.min
end