import java.util.Scanner;

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

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