import 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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
} import java.util.*; util.* java 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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            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 = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        } {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if (tmp <= t) {
                min = Math.min(min, c);
            } tmp <= t tmp t {
                min = Math.min(min, c);
            } min = Math.min(min, c) min Math.min(min, c) Math.min Math min c if (min == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        } min == Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE {
            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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
} Main
import 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 = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int tmp = sc.nextInt();
            if (tmp <= t) {
                min = Math.min(min, c);
            }
        }
        if (min == Integer.MAX_VALUE) {
            System.out.println("TLE");
        } else {
            System.out.println(min);
        }
    }
}
