
N, T = gets.split.map {|w| w.chomp.to_i}

@ct = []

(1..N).each do
  c, t = gets.split.map {|w| w.chomp.to_i}
  @ct.push({:c => c, :t => t})
end

if m = @ct.select{|w| w[:t] <= T}.min{|a, b| a[:c] <=> b[:c]}
  puts m[:c]
else
  puts "TLE"
end
