import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int tl = sc.nextInt(); tl sc.nextInt() sc.nextInt sc int cost[] = new int[n]; cost new int[n] n int min = 1001; min 1001 for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        } {
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            } sc.nextInt() <= tl && cost[i] < min sc.nextInt() <= tl sc.nextInt() sc.nextInt sc tl cost[i] < min cost[i] cost i min {
            	min = cost[i];
            } min = cost[i] min cost[i] cost i if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        } min == 1001 min 1001 {
        	System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
        	System.out.println(min);
        } System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int tl = sc.nextInt();
        int cost[] = new int[n];
        int min = 1001;
        for(int i = 0; i < n; i++){
        	cost[i] = sc.nextInt();
            if(sc.nextInt() <= tl && cost[i] < min){
            	min = cost[i];
            }
        }
        if(min == 1001){
        	System.out.println("TLE");
        }else{
        	System.out.println(min);
        }
    }
}