N,T = gets.split.map(&:to_i)
cts = []
N.times { cts << gets.to_i }
ret = 1000
flag = 0
cts.each do |ct|
  if ct[1] <= T
    ret = [ct[0],ret].min
    flag = 1
  end
end
 
if flag == 1
  puts ret
else
  puts 'TLE'
end