import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    } 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 minCost = 1001; minCost 1001 for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        } {
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        } int ci = sc.nextInt(); ci sc.nextInt() sc.nextInt sc int ti = sc.nextInt(); ti sc.nextInt() sc.nextInt sc if(ti <= T && ci < minCost) minCost = ci; ti <= T && ci < minCost ti <= T ti T ci < minCost ci minCost minCost = ci minCost ci System.out.println(minCost != 1001 ? minCost : "TLE") System.out.println System.out System System.out minCost != 1001 ? minCost : "TLE" minCost != 1001 minCost 1001 minCost "TLE" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        
        int minCost = 1001; 
        for(int i = 0; i < N; i++){
            int ci = sc.nextInt();  int ti = sc.nextInt();
            if(ti <= T && ci < minCost) minCost = ci;
        }
        System.out.println(minCost != 1001 ? minCost : "TLE");
    }
}
