//ｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｹｯｺｯｯｺｰｰｰｰ!!!!!!wwwwwwwwwww
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    }
} 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 ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ttt = sc.nextInt(); ttt sc.nextInt() sc.nextInt sc int[] c = new int[n]; c new int[n] n int[] t = new int[n]; t new int[n] n for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        } {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        } c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc if(t[i] > ttt){
                c[i] = 2020;
            } t[i] > ttt t[i] t i ttt {
                c[i] = 2020;
            } c[i] = 2020 c[i] c i 2020 Arrays.sort(c) Arrays.sort Arrays c if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        } c[0] == 2020 c[0] c 0 2020 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(c[0]);
        } System.out.println(c[0]) System.out.println System.out System System.out c[0] c 0 String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    }
} Main
//ｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwｺｹｯwwwｺｹｯｺｯwwwｺｯwwｺｯwwｺｹｯwwwｺｯwwwｺｹｯwwwｺｹｯｺｯwwwｺｹｰｰｰｰｯ!!!wwwwwｺｹｯｺｯｯｺｰｰｰｰ!!!!!!wwwwwwwwwww
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ttt = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        for(int i = 0 ; i < n ; i++){
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(t[i] > ttt){
                c[i] = 2020;
            }
        }
        Arrays.sort(c);
        if(c[0] == 2020){
            System.out.println("TLE");
        }else{
            System.out.println(c[0]);
        }
    }
}