import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 }
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 }
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 } main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 } 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 List<Integer> costs = new ArrayList<>(); costs new ArrayList<>() List<Integer> times = new ArrayList<>(); times new ArrayList<>() List<Integer> tmpCosts = new ArrayList<>(); tmpCosts new ArrayList<>() for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		} int a = 0 ; int a = 0 ; a 0 a < N a N a++ a++ a {
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		} {
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		} costs.add(sc.nextInt()) costs.add costs sc.nextInt() sc.nextInt sc times.add(sc.nextInt()) times.add times sc.nextInt() sc.nextInt sc sc.close() sc.close sc for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		} int b = 0 ; int b = 0 ; b 0 b < N b N b++ b++ b {
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		} {
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		} if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			} times.get(b) <= T times.get(b) times.get times b T {
				tmpCosts.add(costs.get(b));
			} tmpCosts.add(costs.get(b)) tmpCosts.add tmpCosts costs.get(b) costs.get costs b if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		} tmpCosts.isEmpty() tmpCosts.isEmpty tmpCosts {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		} Collections.sort(tmpCosts) Collections.sort Collections tmpCosts System.out.println(tmpCosts.get(0)) System.out.println System.out System System.out tmpCosts.get(0) tmpCosts.get tmpCosts 0 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 }
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 }
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		List<Integer> costs = new ArrayList<>();
		List<Integer> times = new ArrayList<>();
		List<Integer> tmpCosts = new ArrayList<>();
		for(int a = 0 ; a < N ; a++){
			costs.add(sc.nextInt());
			times.add(sc.nextInt());
		}
		sc.close();
		for(int b = 0 ; b < N ; b++){
			if(times.get(b) <= T){
				tmpCosts.add(costs.get(b));
			}
		}
		if(tmpCosts.isEmpty()){
			System.out.println("TLE");
		}else{		
			Collections.sort(tmpCosts);
			System.out.println(tmpCosts.get(0));
		}
	 }
}