import java.util.ArrayList;                                                      
import java.util.Collections;                                                    
import java.util.List;                                                           
import java.util.Scanner;                                                        
                                                                                 
class Main {                                                                     
	public static void main(String[] args) {                                     
		Scanner sc = new Scanner(System.in);                                     
		int N = Integer.parseInt(sc.next());                                     
		int T = Integer.parseInt(sc.next());                                     
                                                                                 
		List<Integer> list = new ArrayList();                                    
		for(int i=0; i<N; i++){                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		}                                                                        
		if(list.size() == 0){                                                    
			System.out.println("TLE");                                           
		} else {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		}                                                                        
	}                                                                            
}                                                                                
                                                                                  import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {                                                                     
	public static void main(String[] args) {                                     
		Scanner sc = new Scanner(System.in);                                     
		int N = Integer.parseInt(sc.next());                                     
		int T = Integer.parseInt(sc.next());                                     
                                                                                 
		List<Integer> list = new ArrayList();                                    
		for(int i=0; i<N; i++){                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		}                                                                        
		if(list.size() == 0){                                                    
			System.out.println("TLE");                                           
		} else {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		}                                                                        
	}                                                                            
} Main public static void main(String[] args) {                                     
		Scanner sc = new Scanner(System.in);                                     
		int N = Integer.parseInt(sc.next());                                     
		int T = Integer.parseInt(sc.next());                                     
                                                                                 
		List<Integer> list = new ArrayList();                                    
		for(int i=0; i<N; i++){                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		}                                                                        
		if(list.size() == 0){                                                    
			System.out.println("TLE");                                           
		} else {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		}                                                                        
	} main {                                     
		Scanner sc = new Scanner(System.in);                                     
		int N = Integer.parseInt(sc.next());                                     
		int T = Integer.parseInt(sc.next());                                     
                                                                                 
		List<Integer> list = new ArrayList();                                    
		for(int i=0; i<N; i++){                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		}                                                                        
		if(list.size() == 0){                                                    
			System.out.println("TLE");                                           
		} else {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		}                                                                        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> list = new ArrayList(); list new ArrayList() for(int i=0; i<N; i++){                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		} {                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		} int a=Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b=Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(b <= T){                                                          
				list.add(a);                                                     
			} b <= T b T {                                                          
				list.add(a);                                                     
			} list.add(a) list.add list a if(list.size() == 0){                                                    
			System.out.println("TLE");                                           
		} else {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		} list.size() == 0 list.size() list.size list 0 {                                                    
			System.out.println("TLE");                                           
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		} Collections.sort(list) Collections.sort Collections list System.out.println(list.get(0)) System.out.println System.out System System.out list.get(0) list.get list 0 String[] args args
import java.util.ArrayList;                                                      
import java.util.Collections;                                                    
import java.util.List;                                                           
import java.util.Scanner;                                                        
                                                                                 
class Main {                                                                     
	public static void main(String[] args) {                                     
		Scanner sc = new Scanner(System.in);                                     
		int N = Integer.parseInt(sc.next());                                     
		int T = Integer.parseInt(sc.next());                                     
                                                                                 
		List<Integer> list = new ArrayList();                                    
		for(int i=0; i<N; i++){                                                  
			int a=Integer.parseInt(sc.next());                                   
			int b=Integer.parseInt(sc.next());                                   
			if(b <= T){                                                          
				list.add(a);                                                     
			}                                                                    
		}                                                                        
		if(list.size() == 0){                                                    
			System.out.println("TLE");                                           
		} else {                                                                 
			Collections.sort(list);                                              
			System.out.println(list.get(0));                                     
		}                                                                        
	}                                                                            
}                                                                                
                                                                                 