function Main(input){
	var a = input.split("\n");
  var b = a[0].split(" ");
  var N = b[0];
  var T = b[1];
  var minCost = 10000;
  for(var i = 1; i <= N ; i++){
  	var d = a[i].split(" ");
    var c = d[0];
    var t = d[1];
    if(t <= T && c < minCost){
    	minCost = c;
    }
  }
  if(minCost == 10000){
  	return "TLE";
  }
  return minCost;
}

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