N,T = gets.chomp.split(" ").map(&:to_i)
cts = readlines.map{|l| l.split.map(&:to_i)}
ans = []
cts.each do |c, t|
  if t <= T
    ans << c
    end
end

if ans == []
  puts "TLE"
else
  puts ans.min
end