import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int limit=scn.nextInt();
        int minCost=1001;
        for(int i=0;i<n;i++){
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        }
        if(minCost==1001){
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int limit=scn.nextInt();
        int minCost=1001;
        for(int i=0;i<n;i++){
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        }
        if(minCost==1001){
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
} Main public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int limit=scn.nextInt();
        int minCost=1001;
        for(int i=0;i<n;i++){
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        }
        if(minCost==1001){
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    } main {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int limit=scn.nextInt();
        int minCost=1001;
        for(int i=0;i<n;i++){
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        }
        if(minCost==1001){
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn int limit=scn.nextInt(); limit scn.nextInt() scn.nextInt scn int minCost=1001; minCost 1001 for(int i=0;i<n;i++){
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        } {
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        } int cost=scn.nextInt(); cost scn.nextInt() scn.nextInt scn int time=scn.nextInt(); time scn.nextInt() scn.nextInt scn if(limit>=time){
                if(minCost>cost) minCost=cost;
            } limit>=time limit time {
                if(minCost>cost) minCost=cost;
            } if(minCost>cost) minCost=cost; minCost>cost minCost cost minCost=cost minCost cost if(minCost==1001){
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        } minCost==1001 minCost 1001 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(minCost);
        } System.out.println(minCost) System.out.println System.out System System.out minCost String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int limit=scn.nextInt();
        int minCost=1001;
        for(int i=0;i<n;i++){
            int cost=scn.nextInt();
            int time=scn.nextInt();
            if(limit>=time){
                if(minCost>cost) minCost=cost;
            }
        }
        if(minCost==1001){
            System.out.println("TLE");
        }else{
            System.out.println(minCost);
        }
    }
}