N,T = gets.strip.split.map(&:to_i)
i = 1
cnt = 10**9
while i <= N
  c,t = gets.strip.split.map(&:to_i)
  if t <= T
    if c <= cnt
      cnt = c
    end
  end
  i += 1
end

if cnt == 10**9
  puts "TLE"
else
  puts cnt
end