import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		int n, t;
		int minCost = 1001;
		Scanner sc = new Scanner(System.in);

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

		for(int i = 0; i < n; ++i) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		}

		if(minCost == 1001) {
			System.out.println("TLE");
		} else {
			System.out.println(minCost);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]) {
		int n, t;
		int minCost = 1001;
		Scanner sc = new Scanner(System.in);

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

		for(int i = 0; i < n; ++i) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		}

		if(minCost == 1001) {
			System.out.println("TLE");
		} else {
			System.out.println(minCost);
		}
	}
} Main public static void main(String args[]) {
		int n, t;
		int minCost = 1001;
		Scanner sc = new Scanner(System.in);

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

		for(int i = 0; i < n; ++i) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		}

		if(minCost == 1001) {
			System.out.println("TLE");
		} else {
			System.out.println(minCost);
		}
	} main {
		int n, t;
		int minCost = 1001;
		Scanner sc = new Scanner(System.in);

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

		for(int i = 0; i < n; ++i) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		}

		if(minCost == 1001) {
			System.out.println("TLE");
		} else {
			System.out.println(minCost);
		}
	} int n n t; t int minCost = 1001; minCost 1001 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc t = sc.nextInt() t sc.nextInt() sc.nextInt sc for(int i = 0; i < n; ++i) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		} int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		} {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		} int ci = sc.nextInt(); ci sc.nextInt() sc.nextInt sc int ti = sc.nextInt(); ti sc.nextInt() sc.nextInt sc if(ti <= t) {
				minCost = Math.min(minCost, ci);
			} ti <= t ti t {
				minCost = Math.min(minCost, ci);
			} minCost = Math.min(minCost, ci) minCost Math.min(minCost, ci) Math.min Math minCost ci 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 String args[] args
import java.util.Scanner;

class Main {
	public static void main(String args[]) {
		int n, t;
		int minCost = 1001;
		Scanner sc = new Scanner(System.in);

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

		for(int i = 0; i < n; ++i) {
			int ci = sc.nextInt();
			int ti = sc.nextInt();
			if(ti <= t) {
				minCost = Math.min(minCost, ci);
			}
		}

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