n, t = gets.strip.split.map(&:to_i)
mincost=1<<10
(1..n).each do |i|
	cost, time = gets.strip.split.map(&:to_i)
	if time<=t && cost<mincost
		mincost=cost
	end
end

if mincost < 1<<10
	puts mincost
else
	puts 'TLE'
end

