void main() {
    int[] tmp = readln.split.to!(int[]);
    int n = tmp[0], t = tmp[1];
    int cost = 2000;
    foreach (i; 0 .. n) {
        tmp = readln.split.to!(int[]);
        if (tmp[1] <= t) cost = min(cost, tmp[0]);
    }
    writeln(cost != 2000 ? cost.to!string : "TLE");
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.container;
import std.typecons;