import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util import java.util.TreeMap; TreeMap java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt() n sc.nextInt() sc.nextInt sc T = sc.nextInt(); T sc.nextInt() sc.nextInt sc Map<Integer,Integer> map = new TreeMap<>(); map new TreeMap<>() for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		} ; n > 0 n 0 n-- n-- n {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		} {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		} int c = sc.nextInt() c sc.nextInt() sc.nextInt sc t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if(t <= T) {
				map.put(c, t);
			} t <= T t T {
				map.put(c, t);
			} map.put(c, t) map.put map c t List<Integer> list = new ArrayList<>(map.keySet()); list new ArrayList<>(map.keySet()) if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0)); list.size() == 0 list.size() list.size list 0 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(list.get(0)) System.out.println System.out System System.out list.get(0) list.get list 0 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), T = sc.nextInt();
		Map<Integer,Integer> map = new TreeMap<>();
		for(; n > 0; n--) {
			int c = sc.nextInt(), t = sc.nextInt();
			if(t <= T) {
				map.put(c, t);
			}
		}
		List<Integer> list = new ArrayList<>(map.keySet());
		if(list.size() == 0)System.out.println("TLE");
		else System.out.println(list.get(0));
	}
}