import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	} main {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int maxTime =  sc.nextInt(); maxTime sc.nextInt() sc.nextInt sc int minCost = 10000; minCost 10000 for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		} int i = 0; int i = 0; i 0 i < num i num i ++ i ++ i {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		} {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		} int crtCost = sc.nextInt(); crtCost sc.nextInt() sc.nextInt sc if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			} sc.nextInt() <= maxTime sc.nextInt() sc.nextInt sc maxTime {
				minCost = Math.min(minCost, crtCost);
			} minCost = Math.min(minCost, crtCost) minCost Math.min(minCost, crtCost) Math.min Math minCost crtCost System.out.println(minCost == 10000 ? "TLE" : minCost) System.out.println System.out System System.out minCost == 10000 ? "TLE" : minCost minCost == 10000 minCost 10000 "TLE" minCost String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int maxTime =  sc.nextInt();
		int minCost = 10000;
		for(int i = 0; i < num; i ++) {
			int crtCost = sc.nextInt();
			if(sc.nextInt() <= maxTime) {
				minCost = Math.min(minCost, crtCost);
			}
		}
		System.out.println(minCost == 10000 ? "TLE" : minCost);
	}
}