import java.util.*;
import java.util.stream.*;

class Main {
    static Scanner s=new Scanner(System.in);
    public static void main(String[]$){
        int n=s.nextInt(),t=s.nextInt();
        
        int r=1000000000;
        for(int i=0;i<n;++i){
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        }
        System.out.println(r<1000000000?r:"TLE");
    }
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util class Main {
    static Scanner s=new Scanner(System.in);
    public static void main(String[]$){
        int n=s.nextInt(),t=s.nextInt();
        
        int r=1000000000;
        for(int i=0;i<n;++i){
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        }
        System.out.println(r<1000000000?r:"TLE");
    }
} Main static Scanner s=new Scanner(System.in); s new Scanner(System.in) public static void main(String[]$){
        int n=s.nextInt(),t=s.nextInt();
        
        int r=1000000000;
        for(int i=0;i<n;++i){
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        }
        System.out.println(r<1000000000?r:"TLE");
    } main {
        int n=s.nextInt(),t=s.nextInt();
        
        int r=1000000000;
        for(int i=0;i<n;++i){
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        }
        System.out.println(r<1000000000?r:"TLE");
    } int n=s.nextInt() n s.nextInt() s.nextInt s t=s.nextInt(); t s.nextInt() s.nextInt s int r=1000000000; r 1000000000 for(int i=0;i<n;++i){
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        } int i=0; int i=0; i 0 i<n i n ++i ++i i {
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        } {
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        } int a=s.nextInt() a s.nextInt() s.nextInt s b=s.nextInt(); b s.nextInt() s.nextInt s if(b<=t)
                r=Math.min(r,a); b<=t b t r=Math.min(r,a) r Math.min(r,a) Math.min Math r a System.out.println(r<1000000000?r:"TLE") System.out.println System.out System System.out r<1000000000?r:"TLE" r<1000000000 r 1000000000 r "TLE" String[]$ $
import java.util.*;
import java.util.stream.*;

class Main {
    static Scanner s=new Scanner(System.in);
    public static void main(String[]$){
        int n=s.nextInt(),t=s.nextInt();
        
        int r=1000000000;
        for(int i=0;i<n;++i){
            int a=s.nextInt(),b=s.nextInt();
            if(b<=t)
                r=Math.min(r,a);
        }
        System.out.println(r<1000000000?r:"TLE");
    }
}