import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    }

} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int[] c = new int[a]; c new int[a] a int[] d = new int[a]; d new int[a] a int number = 0; number 0 int answer = 10000; answer 10000 for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        } {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        } c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            } b >= d[i] b d[i] d i {
                if (c[i] < answer) {
                    answer = c[i];
                }
            } if (c[i] < answer) {
                    answer = c[i];
                } c[i] < answer c[i] c i answer {
                    answer = c[i];
                } answer = c[i] answer c[i] c i if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        } answer == 10000 answer 10000 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            System.out.println(answer);
        } System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    }

} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    }

} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] c = new int[a];
        int[] d = new int[a];
        int number = 0;
        int answer = 10000;
        for (int i = 0; i < a; i++) {
            c[i] = sc.nextInt();
            d[i] = sc.nextInt();
            if (b >= d[i]) {
                if (c[i] < answer) {
                    answer = c[i];
                }
            }
        }
        if (answer == 10000) {
            System.out.println("TLE");
        } else {
            System.out.println(answer);
        }
    }

}