import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    }
} 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 timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int timeLimit = sc.nextInt(); timeLimit sc.nextInt() sc.nextInt sc Integer cMin = null; cMin null for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        } {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            } t <= timeLimit t timeLimit {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            } if (cMin == null || c < cMin) {
                    cMin = c;
                } cMin == null || c < cMin cMin == null cMin null c < cMin c cMin {
                    cMin = c;
                } cMin = c cMin c System.out.println(cMin == null ? "TLE" : cMin) System.out.println System.out System System.out cMin == null ? "TLE" : cMin cMin == null cMin null "TLE" cMin String[] args args public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    }
} 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 timeLimit = sc.nextInt();
        Integer cMin = null;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit) {
                if (cMin == null || c < cMin) {
                    cMin = c;
                }
            }
        }
        System.out.println(cMin == null ? "TLE" : cMin);
    }
}
