# frozen_string_literal: true

n, t = gets.split.map(&:to_i)
paths = n.times.map { gets.split.map(&:to_i) }

answer = paths.select {|path| path[1] <= t }.map {|path| path[0] }.min
answer ||= "TLE"

puts answer
