
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}

	Scanner sc = new Scanner(System.in);

	void run() {

		int  n = sc.nextInt();
		int  t = sc.nextInt();
		
		int min = Integer.MAX_VALUE;
		for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		}
		
		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) {
		Main m = new Main();
		m.run();
	}

	Scanner sc = new Scanner(System.in);

	void run() {

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

		int  n = sc.nextInt();
		int  t = sc.nextInt();
		
		int min = Integer.MAX_VALUE;
		for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		}
		
		if(min == Integer.MAX_VALUE){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}
	} run {

		int  n = sc.nextInt();
		int  t = sc.nextInt();
		
		int min = Integer.MAX_VALUE;
		for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		}
		
		if(min == Integer.MAX_VALUE){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}
	} int  n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int  t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		} int i =0 ; int i =0 ; i 0 i < n i n i++ i++ i {
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		} {
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		} int cc = sc.nextInt(); cc sc.nextInt() sc.nextInt sc int tt = sc.nextInt(); tt sc.nextInt() sc.nextInt sc if(tt <= t){
				min = Math.min(min,cc);
			} tt <= t tt t {
				min = Math.min(min,cc);
			} min = Math.min(min,cc) min Math.min(min,cc) Math.min Math min cc 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 public class Main {

	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}

	Scanner sc = new Scanner(System.in);

	void run() {

		int  n = sc.nextInt();
		int  t = sc.nextInt();
		
		int min = Integer.MAX_VALUE;
		for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		}
		
		if(min == Integer.MAX_VALUE){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Main m = new Main();
		m.run();
	}

	Scanner sc = new Scanner(System.in);

	void run() {

		int  n = sc.nextInt();
		int  t = sc.nextInt();
		
		int min = Integer.MAX_VALUE;
		for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		}
		
		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) {
		Main m = new Main();
		m.run();
	}

	Scanner sc = new Scanner(System.in);

	void run() {

		int  n = sc.nextInt();
		int  t = sc.nextInt();
		
		int min = Integer.MAX_VALUE;
		for(int i =0 ; i < n ;i++){
			int cc = sc.nextInt();
			int tt = sc.nextInt();
			if(tt <= t){
				min = Math.min(min,cc);
			}
		}
		
		if(min == Integer.MAX_VALUE){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}
	}
}
