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());

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    }

}
 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());

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    }

} 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());

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    } main {

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

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    } 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 String localMinC = "TLE"; localMinC "TLE" int c_; c_ int t_; t_ for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        } {
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        } c_ = Integer.parseInt(sc.next()) c_ Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc t_ = Integer.parseInt(sc.next()) t_ Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            } t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_) t_ <= t t_ t (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_) localMinC.equals("TLE") localMinC.equals localMinC "TLE" Integer.parseInt(localMinC)>c_ Integer.parseInt(localMinC) Integer.parseInt Integer localMinC c_ {
                localMinC = String.valueOf(c_);
            } localMinC = String.valueOf(c_) localMinC String.valueOf(c_) String.valueOf String c_ System.out.print(localMinC) System.out.print System.out System System.out localMinC 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());

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    }

} 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());

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    }

} 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());

        String localMinC = "TLE";
        int c_; int t_;
        for(int i=0; i<n; i++){
            c_ = Integer.parseInt(sc.next());
            t_ = Integer.parseInt(sc.next());
            if (t_ <= t &&
                (localMinC.equals("TLE") ||
                Integer.parseInt(localMinC)>c_)) {
                localMinC = String.valueOf(c_);
            }
        }

        System.out.print(localMinC);

    }

}

