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 cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    }
} 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 cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    } 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 cost = 0; cost 0 for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        } {
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        } int tempcost = sc.nextInt(); tempcost sc.nextInt() sc.nextInt sc int temptime = sc.nextInt(); temptime sc.nextInt() sc.nextInt sc if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            } t >= temptime t temptime {
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            } if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                } cost > tempcost || cost == 0 cost > tempcost cost tempcost cost == 0 cost 0 {
                    cost = tempcost;
                } cost = tempcost cost tempcost if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        } cost == 0 cost 0 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(cost);
        } System.out.println(cost) System.out.println System.out System System.out cost 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 cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    }
} 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 cost = 0;

        for(int i = 0; i < n; i++){
            int tempcost = sc.nextInt();
            int temptime = sc.nextInt();
            if(t >= temptime){
                if(cost > tempcost || cost == 0) {
                    cost = tempcost;
                }
            }
        }

        if(cost == 0){
            System.out.println("TLE");
        }
        else {
            System.out.println(cost);
        }
    }
}
