import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    } 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 m = 10000; m 10000 for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        } {
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        } int ci = sc.nextInt(); ci sc.nextInt() sc.nextInt sc int ti = sc.nextInt(); ti sc.nextInt() sc.nextInt sc if(ti <= T) m = Math.min(m, ci); ti <= T ti T m = Math.min(m, ci) m Math.min(m, ci) Math.min Math m ci if(m == 10000)  System.out.println("TLE");
        else System.out.println(m); m == 10000 m 10000 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(m) System.out.println System.out System System.out m String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int T = sc.nextInt();
        int m = 10000;
        for(int i = 0;i < N;i++){
            int ci = sc.nextInt();
            int ti = sc.nextInt();
            if(ti <= T) m = Math.min(m, ci);
        }
        if(m == 10000)  System.out.println("TLE");
        else System.out.println(m);
    }
}