N, T, *rest = $stdin.read.split
cts = rest.each_slice(2).to_a
ret = 1000
flag = 0
cts.each do |ct|
  if ct[1] <= T
    ret = ct[0] if ct[0] <= ret
    flag = 1
  end
end
 
if flag == 1
  puts ret
elseif flag == 0
  puts 'TLE'
end