n,a = gets.split(" ").map!{|i| i.to_i}
min = 1000
frag = true
n.times do 
  c, t = gets.split(" ").map{|i| i.to_i}
  if t <= a 
    frag = false
    if min > c
      min = c
    end
  end
end
if frag == true
  puts "TLE"
else puts min
  