import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	} 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 answer=10000; answer 10000 for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		} int i=0; int i=0; i 0 n>i n i i++ i++ i {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if(b<=t&&a<answer) {
				answer=a;
			} b<=t&&a<answer b<=t b t a<answer a answer {
				answer=a;
			} answer=a answer a if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		} answer==10000 answer 10000 System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(answer);
		} System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list=new ArrayList<Integer>();
		//Integer[] array = new Integer[m];
		int n = sc.nextInt();
		int t = sc.nextInt();
		int answer=10000;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(b<=t&&a<answer) {
				answer=a;
			}
		}
		if(answer==10000)
			System.out.println("TLE");
		else {
			System.out.println(answer);
		}
	}
}