import Control.Monad
import Data.List
import Data.Maybe

main :: IO ()
main = do
  [n, t] <- readInts
  cts <- replicateM n readInts
  putStrLn $ maybe "TLE" show $ solve t cts

readInts :: IO [Int]
readInts = map read . words <$> getLine

solve :: Int -> [[Int]] -> Maybe Int
solve t = listToMaybe . sort . map head . filter ((<= t) . last)