
import java.util.Scanner;

public class Main {
    final static int COST_MAX = 1001;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    final static int COST_MAX = 1001;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    }
} Main final static int COST_MAX = 1001; COST_MAX 1001 public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int T = scanner.nextInt(); T scanner.nextInt() scanner.nextInt scanner int cost = COST_MAX; cost COST_MAX for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        } int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        } {
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        } int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner if (t <= T){
                cost = Math.min(cost, c);
            } t <= T t T {
                cost = Math.min(cost, c);
            } cost = Math.min(cost, c) cost Math.min(cost, c) Math.min Math cost c if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        } cost == COST_MAX cost COST_MAX {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(cost);
        } System.out.println(cost) System.out.println System.out System System.out cost String[] args args public class Main {
    final static int COST_MAX = 1001;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    }
} public class Main {
    final static int COST_MAX = 1001;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    }
} Main

import java.util.Scanner;

public class Main {
    final static int COST_MAX = 1001;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int cost = COST_MAX;

        for (int i = 0; i < N; i ++){
            int c = scanner.nextInt();
            int t = scanner.nextInt();

            if (t <= T){
                cost = Math.min(cost, c);
            }
        }

        if (cost == COST_MAX){
            System.out.println("TLE");
        } else {
            System.out.println(cost);
        }
    }
}
