n, t = gets.chomp!.split(' ').map(&:to_i)
min_cost = 1000000

n.times do |i|
    c_i, t_i = gets.chomp!.split(' ').map(&:to_i)
    next if t_i > t

    min_cost = [min_cost, c_i].min
end

puts min_cost == 1000000 ? "TLE" : min_cost
