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();

		int[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	}

} 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();

		int[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	}

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

		int n = sc.nextInt();
		int t = sc.nextInt();

		int[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	} 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[] cn = new int[n]; cn new int[n] n int[] tn = new int[n]; tn new int[n] n int minCost = 1001; minCost 1001 for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		} {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		} cn[i] = sc.nextInt() cn[i] cn i sc.nextInt() sc.nextInt sc tn[i] = sc.nextInt() tn[i] tn i sc.nextInt() sc.nextInt sc if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			} tn[i] <= t tn[i] tn i t {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			} if (cn[i] < minCost) {
					minCost = cn[i];
				} cn[i] < minCost cn[i] cn i minCost {
					minCost = cn[i];
				} minCost = cn[i] minCost cn[i] cn i if (minCost == 1001) {
			System.out.println("TLE");
		} else {
			System.out.println(minCost);
		} minCost == 1001 minCost 1001 {
			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 sc.close() sc.close sc 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[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int t = sc.nextInt();

		int[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	}

} Main
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();

		int[] cn = new int[n];
		int[] tn = new int[n];

		int minCost = 1001;

		for (int i=0; i<n; i++) {
			cn[i] = sc.nextInt();
			tn[i] = sc.nextInt();

			if (tn[i] <= t) {
				if (cn[i] < minCost) {
					minCost = cn[i];
				}
			}
		}

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

		sc.close();
	}

}