#!/usr/bin/ruby
# encoding: utf-8

N,T = gets.split.map(&:to_i)

c = []
t = []
N.times do 
  a,b = gets.split.map(&:to_i)
  c << a
  t << b
end

s = []
(0..N-1).each do |i|
  if t[i] <= T 
    s << c[i]
  end
end

if s.size == 0
  puts "TLE"
else
  puts s.min
end
