import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int c;
		int t;
		int m = 9999;
		int an = 0;
		for(int i = 1; i <= N; i++){
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		}
		if(an == 0){
			System.out.print("TLE");
		}else{
			System.out.print(an);
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int c;
		int t;
		int m = 9999;
		int an = 0;
		for(int i = 1; i <= N; i++){
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		}
		if(an == 0){
			System.out.print("TLE");
		}else{
			System.out.print(an);
		}
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int c;
		int t;
		int m = 9999;
		int an = 0;
		for(int i = 1; i <= N; i++){
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		}
		if(an == 0){
			System.out.print("TLE");
		}else{
			System.out.print(an);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int c;
		int t;
		int m = 9999;
		int an = 0;
		for(int i = 1; i <= N; i++){
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		}
		if(an == 0){
			System.out.print("TLE");
		}else{
			System.out.print(an);
		}
	} 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 c; c int t; t int m = 9999; m 9999 int an = 0; an 0 for(int i = 1; i <= N; i++){
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		} {
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		} c = sc.nextInt() c sc.nextInt() sc.nextInt sc t = sc.nextInt() t sc.nextInt() sc.nextInt sc if(t <= T && c < m){
				an = c;
				m = c;
			} t <= T && c < m t <= T t T c < m c m {
				an = c;
				m = c;
			} an = c an c m = c m c if(an == 0){
			System.out.print("TLE");
		}else{
			System.out.print(an);
		} an == 0 an 0 {
			System.out.print("TLE");
		} System.out.print("TLE") System.out.print System.out System System.out "TLE" {
			System.out.print(an);
		} System.out.print(an) System.out.print System.out System System.out an String args[] args
import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();
		int c;
		int t;
		int m = 9999;
		int an = 0;
		for(int i = 1; i <= N; i++){
			c = sc.nextInt();
			t = sc.nextInt();
			if(t <= T && c < m){
				an = c;
				m = c;
			}
		}
		if(an == 0){
			System.out.print("TLE");
		}else{
			System.out.print(an);
		}
	}
}
