import java.util.ArrayList;
import java.util.Scanner;

public class Main{

	public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	}

} Main public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	} main {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) ArrayList route = new ArrayList(); route new ArrayList() int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		} {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		} int cost = scan.nextInt(); cost scan.nextInt() scan.nextInt scan int time = scan.nextInt(); time scan.nextInt() scan.nextInt scan if(time <= t) {
				route.add(cost);
			} time <= t time t {
				route.add(cost);
			} route.add(cost) route.add route cost if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		} route.size() == 0 route.size() route.size route 0 {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			route.sort(null);
			System.out.println(route.get(0));
		} route.sort(null) route.sort route null System.out.println(route.get(0)) System.out.println System.out System System.out route.get(0) route.get route 0 String args[] args public class Main{

	public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	}

} public class Main{

	public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	}

} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main{

	public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		ArrayList route = new ArrayList();
		
		int n = scan.nextInt();
		int t = scan.nextInt();
		
		for(int i = 0; i < n; i++) {
			int cost = scan.nextInt();
			int time = scan.nextInt();
			
			if(time <= t) {
				route.add(cost);
			}
		}
		
		if(route.size() == 0) {
			System.out.println("TLE");
		}else {
			route.sort(null);
			System.out.println(route.get(0));
		}
		
	}

}