import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost,time;
        int minCost = Integer.MAX_VALUE;
        for(int i = 1;i <= n;i++){
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        }
        System.out.println(minCost != Integer.MAX_VALUE? minCost:"TLE");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost,time;
        int minCost = Integer.MAX_VALUE;
        for(int i = 1;i <= n;i++){
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        }
        System.out.println(minCost != Integer.MAX_VALUE? minCost:"TLE");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost,time;
        int minCost = Integer.MAX_VALUE;
        for(int i = 1;i <= n;i++){
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        }
        System.out.println(minCost != Integer.MAX_VALUE? minCost:"TLE");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost,time;
        int minCost = Integer.MAX_VALUE;
        for(int i = 1;i <= n;i++){
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        }
        System.out.println(minCost != Integer.MAX_VALUE? minCost:"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 cost cost time; time int minCost = Integer.MAX_VALUE; minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 1;i <= n;i++){
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        } {
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        } cost = sc.nextInt() cost sc.nextInt() sc.nextInt sc time = sc.nextInt() time sc.nextInt() sc.nextInt sc if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            } t < time t time continue; if(minCost > cost){
                minCost = cost;
            } minCost > cost minCost cost {
                minCost = cost;
            } minCost = cost minCost cost System.out.println(minCost != Integer.MAX_VALUE? minCost:"TLE") System.out.println System.out System System.out minCost != Integer.MAX_VALUE? minCost:"TLE" minCost != Integer.MAX_VALUE minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE minCost "TLE" String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost,time;
        int minCost = Integer.MAX_VALUE;
        for(int i = 1;i <= n;i++){
            cost = sc.nextInt();
            time = sc.nextInt();
            if(t < time)continue;
            else if(minCost > cost){
                minCost = cost;
            }
        }
        System.out.println(minCost != Integer.MAX_VALUE? minCost:"TLE");
    }
}