import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			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 sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int cost cost time time min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		} {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		} cost = sc.nextInt() cost sc.nextInt() sc.nextInt sc time = sc.nextInt() time sc.nextInt() sc.nextInt sc if (t >= time) {
				min = Math.min(min, cost);
			} t >= time t time {
				min = Math.min(min, cost);
			} min = Math.min(min, cost) min Math.min(min, cost) Math.min Math min cost if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		} min == Integer.MAX_VALUE min Integer.MAX_VALUE Integer Integer.MAX_VALUE {
			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 sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int n = sc.nextInt();
		int t = sc.nextInt();
		int cost, time, min = Integer.MAX_VALUE;
		for (int i = 0; i < n; i++) {
			cost = sc.nextInt();
			time = sc.nextInt();
			if (t >= time) {
				min = Math.min(min, cost);
			}
		}
		if (min == Integer.MAX_VALUE) {
			System.out.println("TLE");
		} else {
			System.out.println(min);
		}
	}
}
