import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int T = sc.nextInt();
		int min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    }
    
}
 import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner 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 min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    }
    
} Main public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int T = sc.nextInt();
		int min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    } main {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int T = sc.nextInt();
		int min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    } 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 min = 10000; min 10000 int num[][] = new int[2][N]; num new int[2][N] 2 N for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		} {
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		} num[0][i] = sc.nextInt() num[0][i] num[0] num 0 i sc.nextInt() sc.nextInt sc num[1][i] = sc.nextInt() num[1][i] num[1] num 1 i sc.nextInt() sc.nextInt sc for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		} {
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		} if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			} num[1][i]<=T num[1][i] num[1] num 1 i T {
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			} if(num[0][i]<min){
					min = num[0][i]; 
				} num[0][i]<min num[0][i] num[0] num 0 i min {
					min = num[0][i]; 
				} min = num[0][i] min num[0][i] num[0] num 0 i if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		} min == 10000 min 10000 {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(min);
		} System.out.println(min) System.out.println System.out System System.out min sc.close() sc.close sc return ; 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 min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    }
    
} public class Main {

    public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int T = sc.nextInt();
		int min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    }
    
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
    	
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int T = sc.nextInt();
		int min = 10000;
		
		int num[][] = new int[2][N];

		for(int i = 0;i < N;i++){
			num[0][i] = sc.nextInt();
			num[1][i] = sc.nextInt();
		}

		for(int i = 0;i < N;i++){
			if(num[1][i]<=T){
				if(num[0][i]<min){
					min = num[0][i]; 
				}
			}
		}

		if(min == 10000){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}

   		sc.close();
        return ;

    }
    
}

