import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        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 scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        if (minCost != Integer.MAX_VALUE) System.out.println(minCost);
        else System.out.println("TLE");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        if (minCost != Integer.MAX_VALUE) System.out.println(minCost);
        else System.out.println("TLE");
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        if (minCost != Integer.MAX_VALUE) System.out.println(minCost);
        else System.out.println("TLE");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int T = scanner.nextInt(); T scanner.nextInt() scanner.nextInt scanner int minCost = Integer.MAX_VALUE; minCost Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        } {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        } int c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner if (t <= T) minCost = Math.min(minCost, c); t <= T t T minCost = Math.min(minCost, c) minCost Math.min(minCost, c) Math.min Math minCost c 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 System.out System System.out minCost 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 scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        if (minCost != Integer.MAX_VALUE) System.out.println(minCost);
        else System.out.println("TLE");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        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 scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int T = scanner.nextInt();
        int minCost = Integer.MAX_VALUE;
        for (int i = 0; i < N; i++) {
            int c = scanner.nextInt();
            int t = scanner.nextInt();
            if (t <= T) minCost = Math.min(minCost, c);
        }
        if (minCost != Integer.MAX_VALUE) System.out.println(minCost);
        else System.out.println("TLE");
    }
}
