local n, t = io.read("*n", "*n")
local min = nil
for i = 1, n do
  local a, b = io.read("*n", "*n")
  if b <= t then
    if not min then min = a
    else min = math.min(min, a)
    end
  end
end
if min then print(min) else print("TLE") end
