import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    }
} Main public static void main(String[] args) throws Exception {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    } main {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    } try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	} {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 = 10000000; min 10000000 while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		} N-->0 N-- N 0 {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if(t<=T && c<min) {
    				min = c;
    			} t<=T && c<min t<=T t T c<min c min {
    				min = c;
    			} min = c min c System.out.println(min==10000000? "TLE" : min) System.out.println System.out System System.out min==10000000? "TLE" : min min==10000000 min 10000000 "TLE" min String[] args args public class Main {
    public static void main(String[] args) throws Exception {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    }
} public class Main {
    public static void main(String[] args) throws Exception {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
    	try(Scanner sc = new Scanner(System.in)) {

    		int N = sc.nextInt();
    		int T = sc.nextInt();
    		int min = 10000000;
    		while(N-->0) {
    			int c = sc.nextInt();
    			int t = sc.nextInt();
    			if(t<=T && c<min) {
    				min = c;
    			}
    		}
    		System.out.println(min==10000000? "TLE" : min);

    	}
    }
}
