n,T = gets.split.map &:to_i

c = []
t = []

min = Float::INFINITY
n.times{
	c, t = gets.split.map &:to_i
	if c < min && t <= T then
		min = c
	end
}

if min == Float::INFINITY then
	puts "TLE"
else
	puts min
end
