import numpy as np





N, T = list(map(int, input().split()))



s = np.array([])



for i in range(N):

    s = np.append(s, np.array(list(map(int, input().split()))))



s = s.reshape((N, 2))



pos = np.where(s[:, 1] <= T)



if pos[0].shape == (0,):

    print('TLE')

else:

    print((int(np.sort(s[pos], axis=0)[0][0])))
N, T = list(map(int, input().split()))

ct = []

for i in range(N):

    ct.append(list(map(int, input().split())))



ct.sort()



ans = 'TLE'

for i in range(N):

    if ct[i][1] <= T:

        ans = ct[i][0]

        break



print(ans)
import numpy as np

N, T = list(map(int, input().split()))
s = np.array([])
for i in range(N):
    s = np.append(s, np.array(list(map(int, input().split()))))
s = s.reshape((N, 2))
pos = np.where(s[:, 1] <= T)
if pos[0].shape == (0,):
    print("TLE")
else:
    print((int(np.sort(s[pos], axis=0)[0][0])))

N, T = list(map(int, input().split()))
ct = []
for i in range(N):
    ct.append(list(map(int, input().split())))
ct.sort()
ans = "TLE"
for i in range(N):
    if ct[i][1] <= T:
        ans = ct[i][0]
        break
print(ans)

-import numpy as np - -s = np.array([]) +ct = [] -    s = np.append(s, np.array(list(map(int, input().split())))) -s = s.reshape((N, 2)) -pos = np.where(s[:, 1] <= T) -if pos[0].shape == (0,): -    print("TLE") -else: -    print((int(np.sort(s[pos], axis=0)[0][0]))) +    ct.append(list(map(int, input().split()))) +ct.sort() +ans = "TLE" +for i in range(N): +    if ct[i][1] <= T: +        ans = ct[i][0] +        break +print(ans)