n,t = gets.split.map(&:to_i)
t_arr = []

n.times do |i|
  s = gets.split.map(&:to_i)
  if s[1] <= t
    t_arr << s
  end
end

if t_arr.count == 0
  puts "TLE"
  exit
end

c_arr = []
t_arr.each do |x|
  c_arr << x[0]
end

p c_arr.min
