import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	} 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[] cost = new int[n]; cost new int[n] n int[] time = new int[n]; time new int[n] n for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		} {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		} cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc time[i] = sc.nextInt() time[i] time i sc.nextInt() sc.nextInt sc int ans=0; ans 0 for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		} {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		} if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			} time[i]<=t && cost[ans]>cost[i] time[i]<=t time[i] time i t cost[ans]>cost[i] cost[ans] cost ans cost[i] cost i {
				ans=i;
			} ans=i ans i if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		} time[ans]<=t time[ans] time ans t {
			System.out.println(cost[ans]);
		} System.out.println(cost[ans]) System.out.println System.out System System.out cost[ans] cost ans {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	}
} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] cost = new int[n];
		int[] time = new int[n];
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
			time[i] = sc.nextInt();
		}
		int ans=0;
		for(int i=0; i<n; i++) {
			if(time[i]<=t && cost[ans]>cost[i]) {
				ans=i;
			}
		}
		if(time[ans]<=t) {
			System.out.println(cost[ans]);
		}else {
			System.out.println("TLE");
		}
	}
}