import java.util.*;

public class Main {
    public static void main(String args[]) {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
} Main public static void main(String args[]) {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    } main {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    } int N N T; T int min = 9999; min 9999 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner T = scanner.nextInt() T scanner.nextInt() scanner.nextInt scanner for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        } {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        } int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner if (t <= T) {
                if (c < min) {
                    min = c;
                }
            } t <= T t T {
                if (c < min) {
                    min = c;
                }
            } if (c < min) {
                    min = c;
                } c < min c min {
                    min = c;
                } min = c min c 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[]) {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
} public class Main {
    public static void main(String args[]) {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        int N, T;
        int min = 9999;
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        T = scanner.nextInt();
        for (int i = 1; i <= N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) {
                if (c < min) {
                    min = c;
                }
            }
        }
        if (min == 9999) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
}