import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int maxt = sc.nextInt();
		int[] c = new int[n];
		int[] t = new int[n];
		int minc = 0;
		int minct = 0;
		for (int i = 0; i < n; i++) {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		}
		if (minct > maxt) {
			System.out.println("TLE");
		} else {
			System.out.println(minc);
		}
 	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int maxt = sc.nextInt();
		int[] c = new int[n];
		int[] t = new int[n];
		int minc = 0;
		int minct = 0;
		for (int i = 0; i < n; i++) {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		}
		if (minct > maxt) {
			System.out.println("TLE");
		} else {
			System.out.println(minc);
		}
 	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int maxt = sc.nextInt();
		int[] c = new int[n];
		int[] t = new int[n];
		int minc = 0;
		int minct = 0;
		for (int i = 0; i < n; i++) {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		}
		if (minct > maxt) {
			System.out.println("TLE");
		} else {
			System.out.println(minc);
		}
 	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int maxt = sc.nextInt();
		int[] c = new int[n];
		int[] t = new int[n];
		int minc = 0;
		int minct = 0;
		for (int i = 0; i < n; i++) {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		}
		if (minct > maxt) {
			System.out.println("TLE");
		} else {
			System.out.println(minc);
		}
 	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int maxt = sc.nextInt(); maxt sc.nextInt() sc.nextInt sc int[] c = new int[n]; c new int[n] n int[] t = new int[n]; t new int[n] n int minc = 0; minc 0 int minct = 0; minct 0 for (int i = 0; i < n; i++) {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		} {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		} c[i] = sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			} i == 0 i 0 {
				minc = c[i];
				minct = t[i];
			} minc = c[i] minc c[i] c i minct = t[i] minct t[i] t i {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			} if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				} t[i] <= maxt t[i] t i maxt {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				} if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					} c[i] < minc c[i] c i minc {
						minc = c[i];
						minct = t[i];
					} minc = c[i] minc c[i] c i minct = t[i] minct t[i] t i if (minct > maxt) {
			System.out.println("TLE");
		} else {
			System.out.println(minc);
		} minct > maxt minct maxt {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(minc);
		} System.out.println(minc) System.out.println System.out System System.out minc String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int maxt = sc.nextInt();
		int[] c = new int[n];
		int[] t = new int[n];
		int minc = 0;
		int minct = 0;
		for (int i = 0; i < n; i++) {
			c[i] = sc.nextInt();
			t[i] = sc.nextInt();
			if (i == 0) {
				minc = c[i];
				minct = t[i];
			} else {
				if (t[i] <= maxt) {
					if (c[i] < minc) {
						minc = c[i];
						minct = t[i];
					}
				}
			}
		}
		if (minct > maxt) {
			System.out.println("TLE");
		} else {
			System.out.println(minc);
		}
 	}
}
