n, t = gets.split.map(&:to_i)
costTime = readlines.map(&:chomp).map(&:split).map {|i| i.map(&:to_i)}

arr = []
costTime.map do |x, y|
  if (y <= t)
    arr << x
  end
end

if arr.empty?
  puts "TLE"
else
  puts arr.min
end
