import java.util.*;

public class Main {
    public static void main(String args[]){
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]){
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    }
} Main public static void main(String args[]){
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    } main {
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    } int N N T; T int min = 0; min 0 int count = 0; count 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner T = scanner.nextInt() T scanner.nextInt() scanner.nextInt scanner for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        } {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        } int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            } t <= T t T {
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            } if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                } min == 0 min 0 {
                    min = c;
                } min = c min c {
                    if(c < min){
                        min = c;
                    }
                } if(c < min){
                        min = c;
                    } c < min c min {
                        min = c;
                    } min = c min c {
                count++;
            } count++ count if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        } count == N count N {
            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[]){
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    }
} public class Main {
    public static void main(String args[]){
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]){
        int N,T;
        int min = 0;
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for(int i = 1; i <= N; i++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if(t <= T){
                if(min == 0){
                    min = c;
                }else{
                    if(c < min){
                        min = c;
                    }
                }
            }else{
                count++;
            }
        }
        if(count == N){
            System.out.println("TLE");
        }else{
            System.out.println(min);
        }
    }
}