n, t = gets.split.map(&:to_i)
ary = []
costs = []
ans = "TLE"
n.times do
  ary << gets.split.map(&:to_i)
end
ary.each do |i|
  if i[1] <= t
    costs << i[0]
  end
end
if costs.empty?
  puts ans
else
  puts ans = costs.min
end