import java.util.ArrayList;
import java.util.List;
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();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }

} import java.util.ArrayList; ArrayList java.util import java.util.List; List 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 t = sc.nextInt();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    } 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 List<Integer> cList = new ArrayList<>(); cList new ArrayList<>() List<Integer> tList = new ArrayList<>(); tList new ArrayList<>() for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        } {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        } cList.add(sc.nextInt()) cList.add cList sc.nextInt() sc.nextInt sc tList.add(sc.nextInt()) tList.add tList sc.nextInt() sc.nextInt sc Integer minCost = null; minCost null for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        } {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        } if (tList.get(i) > t) {
                continue;
            } tList.get(i) > t tList.get(i) tList.get tList i t {
                continue;
            } continue; int cost = cList.get(i); cost cList.get(i) cList.get cList i if (minCost == null || cost < minCost) {
                minCost = cost;
            } minCost == null || cost < minCost minCost == null minCost null cost < minCost cost minCost {
                minCost = cost;
            } minCost = cost minCost cost if (minCost == null) {
            System.out.println("TLE");
            return;
        } minCost == null minCost null {
            System.out.println("TLE");
            return;
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" return; System.out.println(minCost) System.out.println System.out System System.out minCost 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();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }

} Main
import java.util.ArrayList;
import java.util.List;
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();
        List<Integer> cList = new ArrayList<>();
        List<Integer> tList = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            cList.add(sc.nextInt());
            tList.add(sc.nextInt());
        }
        Integer minCost = null;
        for (int i = 0; i < n; i++) {
            if (tList.get(i) > t) {
                continue;
            }
            int cost = cList.get(i);
            if (minCost == null || cost < minCost) {
                minCost = cost;
            }
        }
        if (minCost == null) {
            System.out.println("TLE");
            return;
        }
        System.out.println(minCost);
    }

}
