import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    private Scanner stdin;
    private PrintWriter stdout;

    public void execute() {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    }

    public static void main(String[] args) throws Exception {
        Main instance = new Main();
        instance.execute();
    }

} import java.io.BufferedInputStream; BufferedInputStream java.io import java.io.BufferedOutputStream; BufferedOutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {

    private Scanner stdin;
    private PrintWriter stdout;

    public void execute() {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    }

    public static void main(String[] args) throws Exception {
        Main instance = new Main();
        instance.execute();
    }

} Main private Scanner stdin; stdin private PrintWriter stdout; stdout public void execute() {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    } execute {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    } this.stdin = new Scanner(new BufferedInputStream(System.in)) this.stdin this this.stdin new Scanner(new BufferedInputStream(System.in)) this.stdout = new PrintWriter(new BufferedOutputStream(System.out)) this.stdout this this.stdout new PrintWriter(new BufferedOutputStream(System.out)) while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        } this.stdin.hasNext() this.stdin.hasNext this.stdin this this.stdin {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        } int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin int threshold = stdin.nextInt(); threshold stdin.nextInt() stdin.nextInt stdin int foo = -1; foo -1 1 for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            } {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            } int x = stdin.nextInt(); x stdin.nextInt() stdin.nextInt stdin int y = stdin.nextInt(); y stdin.nextInt() stdin.nextInt stdin if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                } y <= threshold y threshold {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                } if (foo == -1 || foo > x) {
                        foo = x;
                    } foo == -1 || foo > x foo == -1 foo -1 1 foo > x foo x {
                        foo = x;
                    } foo = x foo x if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            } foo >= 0 foo 0 {
                stdout.printf("%d\n", foo);
            } stdout.printf("%d\n", foo) stdout.printf stdout "%d\n" foo {
                stdout.printf("TLE\n");
            } stdout.printf("TLE\n") stdout.printf stdout "TLE\n" this.stdin.close() this.stdin.close this.stdin this this.stdin this.stdout.close() this.stdout.close this.stdout this this.stdout public static void main(String[] args) throws Exception {
        Main instance = new Main();
        instance.execute();
    } main {
        Main instance = new Main();
        instance.execute();
    } Main instance = new Main(); instance new Main() instance.execute() instance.execute instance String[] args args public class Main {

    private Scanner stdin;
    private PrintWriter stdout;

    public void execute() {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    }

    public static void main(String[] args) throws Exception {
        Main instance = new Main();
        instance.execute();
    }

} public class Main {

    private Scanner stdin;
    private PrintWriter stdout;

    public void execute() {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    }

    public static void main(String[] args) throws Exception {
        Main instance = new Main();
        instance.execute();
    }

} Main
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {

    private Scanner stdin;
    private PrintWriter stdout;

    public void execute() {
        this.stdin = new Scanner(new BufferedInputStream(System.in));
        this.stdout = new PrintWriter(new BufferedOutputStream(System.out));

        while (this.stdin.hasNext()) {
            int n = stdin.nextInt();
            int threshold = stdin.nextInt();
            int foo = -1;
            for (int i = 0; i < n; ++i) {
                int x = stdin.nextInt();
                int y = stdin.nextInt();
                if (y <= threshold) {
                    if (foo == -1 || foo > x) {
                        foo = x;
                    }
                }
            }
            if (foo >= 0) {
                stdout.printf("%d\n", foo);
            } else {
                stdout.printf("TLE\n");
            }
        }

        this.stdin.close();
        this.stdout.close();
    }

    public static void main(String[] args) throws Exception {
        Main instance = new Main();
        instance.execute();
    }

}
