read N T
min=1001
for ((i=0;i<$N;++i))
do
    read c t
    if ((T < t))
    then
        continue
    fi
    if ((min > c))
    then
        min=$c
    fi
done
if ((min == 1001))
then
    echo 'TLE'
else
    echo $min
fi
