n, t = gets.split.map(&:to_i)
c = []
n.times do
  c << gets.split.map(&:to_i)
end
ans = 1000
flg = 0
c.each do |i|
  if i[1] <= t
    if i[0] <= ans
      flg = 1
      ans = i[0]
    end
  end
end
if flg == 0
  puts 'TLE'
else
  puts ans
end
