import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	}
} Main public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	} main {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int T = scan.nextInt(); T scan.nextInt() scan.nextInt scan int c ; c int min_c = 0; min_c 0 int t ; t for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		} int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		} {
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		} c = scan.nextInt() c scan.nextInt() scan.nextInt scan t = scan.nextInt() t scan.nextInt() scan.nextInt scan if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			} t <= T t T {
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			} if( min_c==0 || c < min_c){
					min_c = c;
				} min_c==0 || c < min_c min_c==0 min_c 0 c < min_c c min_c {
					min_c = c;
				} min_c = c min_c c if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		} min_c == 0 min_c 0 {
			System.out.println("TLE"); 
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(min_c); 	
		} System.out.println(min_c) System.out.println System.out System System.out min_c String[] args args public class Main {
	public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	}
} public class Main {
	public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int T = scan.nextInt();
		
		int c ;
		int min_c = 0;
		int t ;
		
		
		for (int i = 0 ; i < N ;i++){
			c = scan.nextInt();
			t = scan.nextInt();
			
			if(t <= T){
				if( min_c==0 || c < min_c){
					min_c = c;
				}
			}
		}
		
		if (min_c == 0){
			System.out.println("TLE"); 
		}
		else{
			System.out.println(min_c); 	
		}
	}
}