import java.util.*;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }
} import java.util.*; util.* java public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    } main {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    } 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[] t = new int[N]; t new int[N] N int minCost = Integer.MAX_VALUE; minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        } {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        } c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            } t[i] <= T t[i] t i T {
                minCost = Math.min(minCost, c[i]);
            } minCost = Math.min(minCost, c[i]) minCost Math.min(minCost, c[i]) Math.min Math minCost c[i] c i if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        } minCost == Integer.MAX_VALUE minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE {
            System.out.println("TLE");
            return;
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" return; System.out.println(minCost) System.out.println System.out System System.out minCost String[] args args public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }
} public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }
} Main
import java.util.*;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int N = sc.nextInt();
        int T = sc.nextInt();

        int[] c = new int[N];
        int[] t = new int[N];

        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if (t[i] <= T) {
                minCost = Math.min(minCost, c[i]);
            }
        }
        if (minCost == Integer.MAX_VALUE) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }
}