n,max_t=gets.chomp.split(" ").map(&:to_i)
min_c=1000
n.times{
  c,t=gets.chomp.split(" ").map(&:to_i)
  if t<=max_t then
    min_c=[c,min_c].min
  end
 }
 case min_c
 when 1000 then
   puts "TLE"
 else
   puts min_c
 end