n, t = gets.split(" ").map{|d|d.to_i}
lowest_cost = Float::INFINITY
n.times.map {|i|
  ct = gets.split(" ").map{|d|d.to_i}
  if ct[0] < lowest_cost && ct[1] <= t
    lowest_cost = ct[0]
  end
}

if lowest_cost <= t
  puts lowest_cost
else
  puts 'TLE'
end
