def codei
  return gets.split.map &:to_i
end
n, t = codei
c = []; j = []; ans = []
count = 0
n.times do |i|
  c[i], j[i] = codei
  if j[i] <= t
    count += 1
    ans.push(c[i])
  end
end
if count == 0
  puts "TLE"
end
puts ans.min
