import java.util.Scanner;

public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    }
} Main public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    } main {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int minC = 10000; minC 10000 for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        } {
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        } int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(t <= T && c < minC){
                minC = c;
            } t <= T && c < minC t <= T t T c < minC c minC {
                minC = c;
            } minC = c minC c if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        } minC < 10000 minC 10000 {
            System.out.println(minC);
        } System.out.println(minC) System.out.println System.out System System.out minC {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    }
} public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int T = Integer.parseInt(sc.next());
        
        int minC = 10000;
        for(int i = 0; i < n; i++){
            int c = Integer.parseInt(sc.next());
            int t = Integer.parseInt(sc.next());
            if(t <= T && c < minC){
                minC = c;
            }
        }
        
        if(minC < 10000){
            System.out.println(minC);
        }else{
            System.out.println("TLE");
        }
    }
}