import java.util.Scanner;

public class Main {

    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();

        int min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    }

} import java.util.Scanner; Scanner 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 min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    }

} Main public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();

        int min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();

        int min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    } 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 min = 9999; min 9999 for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        } {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        } int cc = sc.nextInt(); cc sc.nextInt() sc.nextInt sc int tt = sc.nextInt(); tt sc.nextInt() sc.nextInt sc if(tt <= t) {
                min = Math.min(min, cc);
            } tt <= t tt t {
                min = Math.min(min, cc);
            } min = Math.min(min, cc) min Math.min(min, cc) Math.min Math min cc if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        } min == 9999 min 9999 {
            System.out.println("TLE");

        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(min);
        } System.out.println(min) System.out.println System.out System System.out min 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 min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    }

} public class Main {

    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();

        int min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();

        int min = 9999;
        for(int i=0; i<n; i++) {
            int cc = sc.nextInt();
            int tt = sc.nextInt();
            if(tt <= t) {
                min = Math.min(min, cc);
            }
        }

        if(min == 9999) {
            System.out.println("TLE");

        } else {
            System.out.println(min);
        }
    }

}
