function main(input) {
  var N = input[0].split(" ")[0]-0;
  var T = input[0].split(" ")[1]-0;
  var ans = "TLE";
  for(var i=1;i<=N;i++){
    var c = input[i].split(" ")[0]-0;
    var t = input[i].split(" ")[1]-0;
    if(T>=t){
      if(ans=="TLE") ans = c;
      else ans = Math.min(ans,c);
    }
  }
  console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
