import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    [n,l] <- getIntList
    ct <- replicateM n $ do
        [c,t] <- getIntList
        return (c,t)
    let cs = map fst $ filter ((<= l) . snd) ct
    let ans | null cs = "TLE"
            | otherwise = show $ minimum cs
    putStrLn ans