import java.util.*;
public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    } main {
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N N T; T N=sc.nextInt() N sc.nextInt() sc.nextInt sc T=sc.nextInt() T sc.nextInt() sc.nextInt sc ArrayList<Integer> cost = new ArrayList<>(); cost new ArrayList<>() for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        } int a=0; int a=0; a 0 a<N a N a++ a++ a {
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        } {
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t=sc.nextInt(); t sc.nextInt() sc.nextInt sc if(t<=T) cost.add(c); t<=T t T cost.add(c) cost.add cost c if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE"); cost.size()!=0 cost.size() cost.size cost 0 System.out.println(Collections.min(cost)) System.out.println System.out System System.out Collections.min(cost) Collections.min Collections cost System.out.println("TLE") System.out.println System.out System System.out "TLE" String args[] args public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    }
} public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    }
} Main
import java.util.*;
public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int N,T;
        N=sc.nextInt();
        T=sc.nextInt();
        ArrayList<Integer> cost = new ArrayList<>();
        for(int a=0;a<N;a++){
            int c = sc.nextInt();
            int t=sc.nextInt();
            if(t<=T) cost.add(c);
        }
        if(cost.size()!=0) System.out.println(Collections.min(cost));
        else System.out.println("TLE");

    }
}