import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	}
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int t = Integer.parseInt(sc.next()); t Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Map<Integer, Integer> map = new HashMap<Integer,Integer>(); map new HashMap<Integer,Integer>() for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		} {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		} int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int time = Integer.parseInt(sc.next()); time Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(time <= t) {
				map.put(c, time);
			} time <= t time t {
				map.put(c, time);
			} map.put(c, time) map.put map c time int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		} Map.Entry<Integer, Integer> entry map.entrySet() map.entrySet map {
			min = Math.min(entry.getKey(), min);
		} {
			min = Math.min(entry.getKey(), min);
		} min = Math.min(entry.getKey(), min) min Math.min(entry.getKey(), min) Math.min Math entry.getKey() entry.getKey entry min System.out.println(min == Integer.MAX_VALUE ? "TLE" : min) System.out.println System.out System System.out min == Integer.MAX_VALUE ? "TLE" : min min == Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE "TLE" min String[] args args public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	}
} public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	}
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		
		Map<Integer, Integer> map = new HashMap<Integer,Integer>();
		
		for(int i = 0; i < n; i++) {
			int c = Integer.parseInt(sc.next());
			int time = Integer.parseInt(sc.next());
			
			if(time <= t) {
				map.put(c, time);
			}
		}
		
		int min = Integer.MAX_VALUE;
		
		for(Map.Entry<Integer, Integer> entry : map.entrySet()) {
			min = Math.min(entry.getKey(), min);
		}
		
		System.out.println(min == Integer.MAX_VALUE ? "TLE" : min);
		
	}
}
