import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    } main {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) StringTokenizer tokenizer = new StringTokenizer(input.readLine()); tokenizer new StringTokenizer(input.readLine()) int n = Integer.parseInt(tokenizer.nextToken()); n Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer int t = Integer.parseInt(tokenizer.nextToken()); t Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer int minCost = 1000011; minCost 1000011 int c1 c1 t1; t1 for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        } {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        } tokenizer = new StringTokenizer(input.readLine()) tokenizer new StringTokenizer(input.readLine()) c1 = Integer.parseInt(tokenizer.nextToken()) c1 Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer t1 = Integer.parseInt(tokenizer.nextToken()) t1 Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer if (t1 <= t)
                minCost = Math.min(minCost, c1); t1 <= t t1 t minCost = Math.min(minCost, c1) minCost Math.min(minCost, c1) Math.min Math minCost c1 System.out.println(minCost== 1000011? "TLE" : minCost) System.out.println System.out System System.out minCost== 1000011? "TLE" : minCost minCost== 1000011 minCost 1000011 "TLE" minCost String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int minCost = 1000011;
        int c1, t1;
        for (int i = 0; i < n; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            c1 = Integer.parseInt(tokenizer.nextToken());
            t1 = Integer.parseInt(tokenizer.nextToken());
            if (t1 <= t)
                minCost = Math.min(minCost, c1);
        }
        System.out.println(minCost== 1000011? "TLE" : minCost);
    }
}
