import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    }
} Main public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    } main {
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int[][] array = new int[N][2]; array new int[N][2] N 2 for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        } {
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        } array[i][0] = sc.nextInt() array[i][0] array[i] array i 0 sc.nextInt() sc.nextInt sc array[i][1] = sc.nextInt() array[i][1] array[i] array i 1 sc.nextInt() sc.nextInt sc int min = array[0][0]; min array[0][0] array[0] array 0 0 boolean flg = false; flg false for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        } {
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        } if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            } array[i][1]<=T array[i][1] array[i] array i 1 T {
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            } flg = true flg true if(min > array[i][0]){
                	min = array[i][0];
                } min > array[i][0] min array[i][0] array[i] array i 0 {
                	min = array[i][0];
                } min = array[i][0] min array[i][0] array[i] array i 0 if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        } flg {	
      	System.out.println(min);
        } System.out.println(min) System.out.println System.out System System.out min {
        System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    }
} public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int T = sc.nextInt();
		int[][] array = new int[N][2];
      	for(int i=0;i<N;i++){
        	array[i][0] = sc.nextInt();
          	array[i][1] = sc.nextInt();
        }
      	int min = array[0][0];
      	boolean flg = false;
      	for(int i=0;i<N;i++){
        	if(array[i][1]<=T){
              	flg = true;
            	if(min > array[i][0]){
                	min = array[i][0];
                }
            }
        }
        if(flg){	
      	System.out.println(min);
        }else{
        System.out.println("TLE");
        }
    }
}