import java.util.*;
import java.math.*;
import java.lang.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int t = sc.nextInt();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	}
} import java.util.*; util.* java import java.math.*; math.* java import java.lang.*; lang.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int t = sc.nextInt();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int t = sc.nextInt();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int t = sc.nextInt();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	} 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 minCost = 1001; minCost 1001 boolean flag = false; flag false for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		} {
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int tx = sc.nextInt(); tx sc.nextInt() sc.nextInt sc if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			} t>=tx t tx {
				flag = true;
				minCost = Math.min(c,minCost);
			} flag = true flag true minCost = Math.min(c,minCost) minCost Math.min(c,minCost) Math.min Math c minCost if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		} !flag flag {

			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			
		System.out.println(minCost);
		} System.out.println(minCost) System.out.println System.out System System.out minCost 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();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int t = sc.nextInt();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	}
} Main
import java.util.*;
import java.math.*;
import java.lang.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		int t = sc.nextInt();
		int minCost = 1001;
		boolean flag = false;

		for(int i=0;i<n;i++){
			int c = sc.nextInt();
			int tx = sc.nextInt();
			if(t>=tx){
				flag = true;
				minCost = Math.min(c,minCost);
			}
		}
			
		if(!flag){

			System.out.println("TLE");
		}else{
			
		System.out.println(minCost);
		}
	}
}