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 cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    }
} 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 cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    } 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 cost = 9999; cost 9999 for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        } {
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t2 = sc.nextInt(); t2 sc.nextInt() sc.nextInt sc if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            } t>=t2 t t2 {
                if(cost>c){
                    cost=c;
                }
            } if(cost>c){
                    cost=c;
                } cost>c cost c {
                    cost=c;
                } cost=c cost c if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        } cost==9999 cost 9999 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(cost);
        } System.out.println(cost) System.out.println System.out System System.out cost 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 cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    }
} 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 cost = 9999;

        for(int i = 0;i<n;i++){
            int c = sc.nextInt();
            int t2 = sc.nextInt();
            if(t>=t2){
                if(cost>c){
                    cost=c;
                }
            }
        }

        if(cost==9999){
            System.out.println("TLE");
        }else{
            System.out.println(cost);
        }


        
    }
}
