import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    } 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 result=0; result 0 int cost[] = new int[N]; cost new int[N] N int time[] = new int[N]; time new int[N] N for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        } {
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        } cost[i]=sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc time[i]=sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc int Min=cost[0]; Min cost[0] cost 0 for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        } int j=0; int j=0; j 0 j<N j N j++ j++ j {
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        } {
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        } if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            } T>=time[j] T time[j] time j {
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            } if(Min>cost[j]){
                    Min=cost[j];
                } Min>cost[j] Min cost[j] cost j {
                    Min=cost[j];
                } Min=cost[j] Min cost[j] cost j result=1 result 1 if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        } result==0 result 0 {
            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 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N =sc.nextInt();
        int T =sc.nextInt();
        int result=0;
       
       
        
        int cost[] = new int[N];
        int time[] = new int[N];
        
        for(int i=0;i<N;i++){
            cost[i]=sc.nextInt();
            time[i]=sc.nextInt();
        }
        
        int Min=cost[0];
        
        for(int j=0;j<N;j++){
            if(T>=time[j]){
                if(Min>cost[j]){
                    Min=cost[j];
                }
                result=1;
            }

        }
        
        if(result==0){
            System.out.println("TLE");
        }else{
            System.out.println(Min);
        }
        
    }
}
