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

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> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		}

	}

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner 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> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();

		List<Integer> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();

		List<Integer> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}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 List<Integer> list1 = new ArrayList<Integer>(); list1 new ArrayList<Integer>() List<Integer> list2 = new ArrayList<Integer>(); list2 new ArrayList<Integer>() for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		} {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		} list1.add(sc.nextInt()) list1.add list1 sc.nextInt() sc.nextInt sc list2.add(sc.nextInt()) list2.add list2 sc.nextInt() sc.nextInt sc sc.close() sc.close sc List<Integer> TrueList = new ArrayList<Integer>(); TrueList new ArrayList<Integer>() for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		} int i = 0; int i = 0; i 0 i < list1.size() i list1.size() list1.size list1 i++ i++ i {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		} {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		} int b = list2.get(i); b list2.get(i) list2.get list2 i if(b <= T) {
				TrueList.add(list1.get(i));
			} b <= T b T {
				TrueList.add(list1.get(i));
			} TrueList.add(list1.get(i)) TrueList.add TrueList list1.get(i) list1.get list1 i int min = -1; min -1 1 for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		} int i = 0; int i = 0; i 0 i < TrueList.size() i TrueList.size() TrueList.size TrueList i++ i++ i {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		} {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		} int a = TrueList.get(i); a TrueList.get(i) TrueList.get TrueList i if(a < min || min == -1) {
				min = a;

			} a < min || min == -1 a < min a min min == -1 min -1 1 {
				min = a;

			} min = a min a if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		} min != -1 min -1 1 {
			System.out.println(min);
		} System.out.println(min) System.out.println System.out System System.out min {
			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) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int T = sc.nextInt();

		List<Integer> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		}

	}

} 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> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		}

	}

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

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> list1 = new ArrayList<Integer>();
		List<Integer> list2 = new ArrayList<Integer>();

		for(int i = 0; i < N; i++) {


			list1.add(sc.nextInt());
			list2.add(sc.nextInt());

		}
		sc.close();

		List<Integer> TrueList = new ArrayList<Integer>();

		for(int i = 0; i < list1.size(); i++) {
			int b = list2.get(i);
			if(b <= T) {
				TrueList.add(list1.get(i));
			}
		}

		int min = -1;

		for(int i = 0; i < TrueList.size(); i++) {
				int a = TrueList.get(i);
			if(a < min || min == -1) {
				min = a;

			}
		}

		if(min != -1) {
			System.out.println(min);
		}else {
			System.out.println("TLE");
		}

	}

}