import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    } main {
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int value = scanner.nextInt(); value scanner.nextInt() scanner.nextInt scanner int maxTime = scanner.nextInt(); maxTime scanner.nextInt() scanner.nextInt scanner int tempCost = 1001; tempCost 1001 for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        } int k = 0; int k = 0; k 0 k < value k value k++ k++ k {
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        } {
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        } int cost = scanner.nextInt(); cost scanner.nextInt() scanner.nextInt scanner int time = scanner.nextInt(); time scanner.nextInt() scanner.nextInt scanner if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            } time <= maxTime&&cost <= tempCost time <= maxTime time maxTime cost <= tempCost cost tempCost {
                tempCost = cost;
            } tempCost = cost tempCost cost if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost); tempCost == 1001 tempCost 1001 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(tempCost) System.out.println System.out System System.out tempCost String[] args args public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    }
} public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int maxTime = scanner.nextInt();
        int tempCost = 1001;
        for(int k = 0;k < value;k++){
            int cost = scanner.nextInt();
            int time = scanner.nextInt();
            if(time <= maxTime&&cost <= tempCost){
                tempCost = cost;
            }
        }
        if(tempCost == 1001) System.out.println("TLE");
        else System.out.println(tempCost);
    }
}
