import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.util.*;
class Main
{
    public static void main(String[] args)throws IOException
    {
        FastReader in=new FastReader(System.in);
        StringBuffer st=new StringBuffer();
       int n=in.nextInt();
       int t=in.nextInt();
       int ans=1000000,d=t;
       while(n--!=0){
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       }
          if(ans==1000000)
        System.out.println("TLE");
        else
        System.out.println(ans);
    }
    static class FastReader{
 
        byte[] buf = new byte[2048];
        int index, total;
        InputStream in;
 
        FastReader(InputStream is) {
            in = is;
        }
 
        int scan() throws IOException {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        }
 
        String next() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan());
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        }
 
        int nextInt() throws IOException {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
 
        long nextLong() throws IOException {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
    }
}       import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.math.BigInteger; BigInteger java.math import java.util.*; util.* java class Main
{
    public static void main(String[] args)throws IOException
    {
        FastReader in=new FastReader(System.in);
        StringBuffer st=new StringBuffer();
       int n=in.nextInt();
       int t=in.nextInt();
       int ans=1000000,d=t;
       while(n--!=0){
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       }
          if(ans==1000000)
        System.out.println("TLE");
        else
        System.out.println(ans);
    }
    static class FastReader{
 
        byte[] buf = new byte[2048];
        int index, total;
        InputStream in;
 
        FastReader(InputStream is) {
            in = is;
        }
 
        int scan() throws IOException {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        }
 
        String next() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan());
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        }
 
        int nextInt() throws IOException {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
 
        long nextLong() throws IOException {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
    }
} Main public static void main(String[] args)throws IOException
    {
        FastReader in=new FastReader(System.in);
        StringBuffer st=new StringBuffer();
       int n=in.nextInt();
       int t=in.nextInt();
       int ans=1000000,d=t;
       while(n--!=0){
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       }
          if(ans==1000000)
        System.out.println("TLE");
        else
        System.out.println(ans);
    } main {
        FastReader in=new FastReader(System.in);
        StringBuffer st=new StringBuffer();
       int n=in.nextInt();
       int t=in.nextInt();
       int ans=1000000,d=t;
       while(n--!=0){
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       }
          if(ans==1000000)
        System.out.println("TLE");
        else
        System.out.println(ans);
    } FastReader in=new FastReader(System.in); in new FastReader(System.in) StringBuffer st=new StringBuffer(); st new StringBuffer() int n=in.nextInt(); n in.nextInt() in.nextInt in int t=in.nextInt(); t in.nextInt() in.nextInt in int ans=1000000 ans 1000000 d=t; d t while(n--!=0){
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       } n--!=0 n-- n 0 {
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       } int a=in.nextInt(); a in.nextInt() in.nextInt in int b=in.nextInt(); b in.nextInt() in.nextInt in if(b<=t){
          if(a<ans){
            ans=a;
          }
         } b<=t b t {
          if(a<ans){
            ans=a;
          }
         } if(a<ans){
            ans=a;
          } a<ans a ans {
            ans=a;
          } ans=a ans a if(ans==1000000)
        System.out.println("TLE");
        else
        System.out.println(ans); ans==1000000 ans 1000000 System.out.println("TLE") System.out.println System.out System System.out "TLE" System.out.println(ans) System.out.println System.out System System.out ans String[] args args static class FastReader{
 
        byte[] buf = new byte[2048];
        int index, total;
        InputStream in;
 
        FastReader(InputStream is) {
            in = is;
        }
 
        int scan() throws IOException {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        }
 
        String next() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan());
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        }
 
        int nextInt() throws IOException {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
 
        long nextLong() throws IOException {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
    } FastReader byte[] buf = new byte[2048]; buf new byte[2048] 2048 int index index total; total InputStream in; in FastReader(InputStream is) {
            in = is;
        } FastReader {
            in = is;
        } in = is in is InputStream is is int scan() throws IOException {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        } scan {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        } if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            } index >= total index total {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            } index = 0 index 0 total = in.read(buf) total in.read(buf) in.read in buf if (total <= 0) {
                    return -1;
                } total <= 0 total 0 {
                    return -1;
                } return -1; -1 1 return buf[index++]; buf[index++] buf index++ index String next() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan());
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        } next {
            int c;
            for (c = scan(); c <= 32; c = scan());
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        } int c; c for (c = scan(); c <= 32; c = scan()); c = scan(); c = scan() c scan() scan c <= 32 c 32 c = scan() c = scan() c scan() scan ; StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (; c > 32; c = scan()) {
                sb.append((char) c);
            } ; c > 32 c 32 c = scan() c = scan() c scan() scan {
                sb.append((char) c);
            } {
                sb.append((char) c);
            } sb.append((char) c) sb.append sb (char) c return sb.toString(); sb.toString() sb.toString sb int nextInt() throws IOException {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        } nextInt {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        } int c c val = 0; val 0 for (c = scan(); c <= 32; c = scan()); c = scan(); c = scan() c scan() scan c <= 32 c 32 c = scan() c = scan() c scan() scan ; boolean neg = c == '-'; neg c == '-' c '-' if (c == '-' || c == '+') {
                c = scan();
            } c == '-' || c == '+' c == '-' c '-' c == '+' c '+' {
                c = scan();
            } c = scan() c scan() scan for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            } ; c >= '0' && c <= '9' c >= '0' c '0' c <= '9' c '9' c = scan() c = scan() c scan() scan {
                val = (val << 3) + (val << 1) + (c & 15);
            } {
                val = (val << 3) + (val << 1) + (c & 15);
            } val = (val << 3) + (val << 1) + (c & 15) val (val << 3) + (val << 1) + (c & 15) (val << 3) + (val << 1) + (c & 15) (val << 3) val 3 (val << 1) val 1 (c & 15) c 15 return neg ? -val : val; neg ? -val : val neg -val val val long nextLong() throws IOException {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        } nextLong {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        } int c; c long val = 0; val 0 for (c = scan(); c <= 32; c = scan()); c = scan(); c = scan() c scan() scan c <= 32 c 32 c = scan() c = scan() c scan() scan ; boolean neg = c == '-'; neg c == '-' c '-' if (c == '-' || c == '+') {
                c = scan();
            } c == '-' || c == '+' c == '-' c '-' c == '+' c '+' {
                c = scan();
            } c = scan() c scan() scan for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            } ; c >= '0' && c <= '9' c >= '0' c '0' c <= '9' c '9' c = scan() c = scan() c scan() scan {
                val = (val << 3) + (val << 1) + (c & 15);
            } {
                val = (val << 3) + (val << 1) + (c & 15);
            } val = (val << 3) + (val << 1) + (c & 15) val (val << 3) + (val << 1) + (c & 15) (val << 3) + (val << 1) + (c & 15) (val << 3) val 3 (val << 1) val 1 (c & 15) c 15 return neg ? -val : val; neg ? -val : val neg -val val val
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.util.*;
class Main
{
    public static void main(String[] args)throws IOException
    {
        FastReader in=new FastReader(System.in);
        StringBuffer st=new StringBuffer();
       int n=in.nextInt();
       int t=in.nextInt();
       int ans=1000000,d=t;
       while(n--!=0){
         int a=in.nextInt();
         int b=in.nextInt();
         if(b<=t){
          if(a<ans){
            ans=a;
          }
         }
       }
          if(ans==1000000)
        System.out.println("TLE");
        else
        System.out.println(ans);
    }
    static class FastReader{
 
        byte[] buf = new byte[2048];
        int index, total;
        InputStream in;
 
        FastReader(InputStream is) {
            in = is;
        }
 
        int scan() throws IOException {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        }
 
        String next() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan());
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        }
 
        int nextInt() throws IOException {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
 
        long nextLong() throws IOException {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan());
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
    }
}      