n,t = gets.split.map{|x| x.to_i}
mincost = 9999
for i in 0...n
  c,tt = gets.split.map{|x| x.to_i}
  if c < mincost && tt <= t
    mincost = c
  end
end

if mincost == 9999
  print "TLE"
else
  print mincost
end
