import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int maxTime = sc.nextInt();
        List<Integer> costs = new ArrayList<Integer>();

        for (int i = 0; i < n; i++) {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        }

        if (costs.size() == 0) {
            System.out.println("TLE");
        } else {
            Collections.sort(costs);
            int minCost = costs.get(0);
            System.out.println(minCost);
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int maxTime = sc.nextInt();
        List<Integer> costs = new ArrayList<Integer>();

        for (int i = 0; i < n; i++) {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        }

        if (costs.size() == 0) {
            System.out.println("TLE");
        } else {
            Collections.sort(costs);
            int minCost = costs.get(0);
            System.out.println(minCost);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int maxTime = sc.nextInt();
        List<Integer> costs = new ArrayList<Integer>();

        for (int i = 0; i < n; i++) {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        }

        if (costs.size() == 0) {
            System.out.println("TLE");
        } else {
            Collections.sort(costs);
            int minCost = costs.get(0);
            System.out.println(minCost);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int maxTime = sc.nextInt();
        List<Integer> costs = new ArrayList<Integer>();

        for (int i = 0; i < n; i++) {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        }

        if (costs.size() == 0) {
            System.out.println("TLE");
        } else {
            Collections.sort(costs);
            int minCost = costs.get(0);
            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 maxTime = sc.nextInt(); maxTime sc.nextInt() sc.nextInt sc List<Integer> costs = new ArrayList<Integer>(); costs new ArrayList<Integer>() for (int i = 0; i < n; i++) {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        } {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        } int cost = sc.nextInt(); cost sc.nextInt() sc.nextInt sc int time = sc.nextInt(); time sc.nextInt() sc.nextInt sc if (time <= maxTime)
                costs.add(cost); time <= maxTime time maxTime costs.add(cost) costs.add costs cost if (costs.size() == 0) {
            System.out.println("TLE");
        } else {
            Collections.sort(costs);
            int minCost = costs.get(0);
            System.out.println(minCost);
        } costs.size() == 0 costs.size() costs.size costs 0 {
            System.out.println("TLE");
        } System.out.println("TLE") System.out.println System.out System System.out "TLE" {
            Collections.sort(costs);
            int minCost = costs.get(0);
            System.out.println(minCost);
        } Collections.sort(costs) Collections.sort Collections costs int minCost = costs.get(0); minCost costs.get(0) costs.get costs 0 System.out.println(minCost) System.out.println System.out System System.out minCost String[] args args
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int maxTime = sc.nextInt();
        List<Integer> costs = new ArrayList<Integer>();

        for (int i = 0; i < n; i++) {
            int cost = sc.nextInt();
            int time = sc.nextInt();

            if (time <= maxTime)
                costs.add(cost);
        }

        if (costs.size() == 0) {
            System.out.println("TLE");
        } else {
            Collections.sort(costs);
            int minCost = costs.get(0);
            System.out.println(minCost);
        }
    }
}