import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] c = new int[n];
		int[] ct = new int[n];
		int tleflg = 1;
		
        for(int i = 0; i < n; i++){
        	c[i] = sc.nextInt();
          	ct[i] = sc.nextInt();
        }
      	int ans = c[0];

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

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

        for(int i=0; i<n; i++){
        	if(ct[i]<=t){
        	    if(ans>c[i]){
        	        ans = c[i];
        	    }
              tleflg =0;
            }
        }
      if(tleflg==1){
        System.out.println("TLE");
      }else{
      	System.out.println(ans);
      }
    } main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int t = sc.nextInt();
		int[] c = new int[n];
		int[] ct = new int[n];
		int tleflg = 1;
		
        for(int i = 0; i < n; i++){
        	c[i] = sc.nextInt();
          	ct[i] = sc.nextInt();
        }
      	int ans = c[0];

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

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

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

        for(int i=0; i<n; i++){
        	if(ct[i]<=t){
        	    if(ans>c[i]){
        	        ans = c[i];
        	    }
              tleflg =0;
            }
        }
      if(tleflg==1){
        System.out.println("TLE");
      }else{
      	System.out.println(ans);
      }
    }
}