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();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    }

} 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();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    } 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 int minCost = Integer.MAX_VALUE; minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = 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 && c < minCost) {
                minCost = c;
            }
        } {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        } int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if (t <= timeLimit && c < minCost) {
                minCost = c;
            } t <= timeLimit && c < minCost t <= timeLimit t timeLimit c < minCost c minCost {
                minCost = c;
            } minCost = c minCost c sc.close() sc.close sc if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        } minCost != Integer.MAX_VALUE minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE {
            System.out.println(minCost);
        } System.out.println(minCost) System.out.println System.out System System.out minCost {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" 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();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int timeLimit = sc.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    }

} 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();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int c = sc.nextInt();
            int t = sc.nextInt();
            if (t <= timeLimit && c < minCost) {
                minCost = c;
            }
        }
        sc.close();

        if (minCost != Integer.MAX_VALUE) {
            System.out.println(minCost);
        } else {
            System.out.println("TLE");
        }
    }

}
