import java.util.*;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    }

}


 import java.util.*; util.* java import java.util.List; List java.util import java.util.Arrays; Arrays java.util import java.util.ArrayList; ArrayList java.util 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 time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int time = sc.nextInt(); time sc.nextInt() sc.nextInt sc List<Integer> c = new ArrayList<>(); c new ArrayList<>() List<Integer> t = new ArrayList<>(); t new ArrayList<>() for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        } {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        } c.add(sc.nextInt()) c.add c sc.nextInt() sc.nextInt sc t.add(sc.nextInt()) t.add t sc.nextInt() sc.nextInt sc for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        } int i = n - 1; int i = n - 1; i n - 1 n 1 i >= 0 i 0 i-- i-- i {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        } {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        } if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            } t.get(i) > time t.get(i) t.get t i time {
                c.remove(i);
                t.remove(i);
            } c.remove(i) c.remove c i t.remove(i) t.remove t i if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        } c.size() > 0 c.size() c.size c 0 {
            Collections.sort(c);
            System.out.println(c.get(0));
        } Collections.sort(c) Collections.sort Collections c System.out.println(c.get(0)) System.out.println System.out System System.out c.get(0) c.get c 0 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    }

} Main
import java.util.*;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int time = sc.nextInt();
        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();

        for (int i = 0; i < n; i++) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());

        }
        for (int i = n - 1; i >= 0; i--) {
            if (t.get(i) > time) {
                c.remove(i);
                t.remove(i);
            }
        }
        if (c.size() > 0) {
            Collections.sort(c);
            System.out.println(c.get(0));
        } else {
            System.out.println("TLE");
        }
    }

}



