import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	}

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

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	}

} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	} main {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] temp1 = scanner.nextLine().split(" "); temp1 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int n = Integer.parseInt(temp1[0]); n Integer.parseInt(temp1[0]) Integer.parseInt Integer temp1[0] temp1 0 int t = Integer.parseInt(temp1[1]); t Integer.parseInt(temp1[1]) Integer.parseInt Integer temp1[1] temp1 1 int ans = Integer.MAX_VALUE; ans Integer.MAX_VALUE Integer Integer.MAX_VALUE int flag = 0; flag 0 String[] temp2 = new String[2]; temp2 new String[2] 2 for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


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

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		} {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		} temp2 = scanner.nextLine().split(" ") temp2 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			} Integer.parseInt(temp2[1]) <= t Integer.parseInt(temp2[1]) Integer.parseInt Integer temp2[1] temp2 1 t {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			} ans = Math.min(ans, Integer.parseInt(temp2[0])) ans Math.min(ans, Integer.parseInt(temp2[0])) Math.min Math ans Integer.parseInt(temp2[0]) Integer.parseInt Integer temp2[0] temp2 0 flag++ flag if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		} flag == 0 flag 0 {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(ans);
		} System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	}

} public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	}

} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp1 = scanner.nextLine().split(" ");
		int n = Integer.parseInt(temp1[0]);
		int t = Integer.parseInt(temp1[1]);

		int ans = Integer.MAX_VALUE;
		int flag = 0;

		String[] temp2 = new String[2];
		for(int i = 0; i < n; i++) {

			temp2 = scanner.nextLine().split(" ");

			if(Integer.parseInt(temp2[1]) <= t) {
				ans = Math.min(ans, Integer.parseInt(temp2[0]));
				flag++;
			}


		}

		if(flag == 0) {
			System.out.println("TLE");
		}else {
			System.out.println(ans);
		}


	}

}
