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 min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    }
} 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 min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    } 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 min = 1001; min 1001 for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        } {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if (T >= t && min > c) {
                min = c;
            } T >= t && min > c T >= t T t min > c min c {
                min = c;
            } min = c min c sc.close() sc.close sc System.out.println(min == 1001 ? "TLE" : min) System.out.println System.out System System.out min == 1001 ? "TLE" : min min == 1001 min 1001 "TLE" min 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 min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    }
} 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 min = 1001;
        for (int i = 0; i < N; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (T >= t && min > c) {
                min = c;
            }
        }
        sc.close();
        System.out.println(min == 1001 ? "TLE" : min);
    }
}