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[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "TLE");
    }
} 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[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "TLE");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();

        int[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "TLE");
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();

        int[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "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[] c = new int[n]; c new int[n] n int cnt = 0; cnt 0 for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        } {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc if (y <= t)
                c[cnt++] = x; y <= t y t c[cnt++] = x c[cnt++] c cnt++ cnt x int min = c[0]; min c[0] c 0 for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        } int i = 1; int i = 1; i 1 i < cnt i cnt i++ i++ i {
            min = Math.min(min, c[i]);
        } {
            min = Math.min(min, c[i]);
        } min = Math.min(min, c[i]) min Math.min(min, c[i]) Math.min Math min c[i] c i System.out.println(min > 0 ? min : "TLE") System.out.println System.out System System.out min > 0 ? min : "TLE" min > 0 min 0 min "TLE" 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[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "TLE");
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();

        int[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "TLE");
    }
} 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[] c = new int[n];

        int cnt = 0;
        for (int i = 0; i < n; i++) {
            int x = sc.nextInt();
            int y = sc.nextInt();

            if (y <= t)
                c[cnt++] = x;
        }

        int min = c[0];
        for (int i = 1; i < cnt; i++) {
            min = Math.min(min, c[i]);
        }

        System.out.println(min > 0 ? min : "TLE");
    }
}
