import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] costAr = new int[n]; costAr new int[n] n int[] timeAr = new int[n]; timeAr new int[n] n for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        } {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        } costAr[i] = Integer.parseInt(sc.next()) costAr[i] costAr i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc timeAr[i] = Integer.parseInt(sc.next()) timeAr[i] timeAr i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int num = 1001; num 1001 for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        } {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        } if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            } costAr[i] < num && timeAr[i] <= t costAr[i] < num costAr[i] costAr i num timeAr[i] <= t timeAr[i] timeAr i t {
                num = costAr[i];
            } num = costAr[i] num costAr[i] costAr i if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        } num == 1001 num 1001 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(num);

        } System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 1001;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 1001){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    }
}
