function Main(input) {
  var data = input.split("\n");
  var toInt = function(d) {
    return parseInt(d);
  }
  var fields = data[0].split(' ').map(toInt);
  var N = fields[0];
  var T = fields[1];

  var minCost = 1001;

  for (var i = 1; i < N + 1; i++) {
    var d = data[i].split(' ').map(toInt);
    var c = d[0];
    var t = d[1];
    if (t <= T) {
      if (c < minCost) {
        minCost = c;
      }
    }
  }

  if (minCost === 1001) {
    console.log('TLE');
  } else {
    console.log(minCost);
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));