

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = Integer.parseInt(scan.next()); N Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int T = Integer.parseInt(scan.next()); T Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] c = new int[N]; c new int[N] N int[] t = new int[N]; t new int[N] N for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		} {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		} c[i] = Integer.parseInt(scan.next()) c[i] c i Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan t[i] = Integer.parseInt(scan.next()) t[i] t i Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int min = 0; min 0 for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		} {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		} if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			} t[i] <= T t[i] t i T {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			} if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				} min == 0 min 0 {
					min = c[i];
				} min = c[i] min c[i] c i {
					if (c[i] < min) {
						min = c[i];
					}
				} if (c[i] < min) {
						min = c[i];
					} c[i] < min c[i] c i min {
						min = c[i];
					} min = c[i] min c[i] c i if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		} min == 0 min 0 {
			System.out.println("TLE");
		} System.out.println("TLE") System.out.println System.out System System.out "TLE" {
			System.out.println(min);
		} System.out.println(min) System.out.println System.out System System.out min String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} Main


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.parseInt(scan.next());
		int T = Integer.parseInt(scan.next());
		int[] c = new int[N];
		int[] t = new int[N];
		for (int i = 0; i < N; i++) {
			c[i] = Integer.parseInt(scan.next());
			t[i] = Integer.parseInt(scan.next());
		}
		int min = 0;
		for (int i = 0; i < N; i++) {
			if (t[i] <= T) {
				if (min == 0) {
					min = c[i];
				} else {
					if (c[i] < min) {
						min = c[i];
					}
				}
			}
		}
		if (min == 0) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
}
