Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())
for i in range(N):
  c,t = map(int,input())
a = 1000
for i in range(N):
  if t <= T:
    a = min(a,c)
if a = 1000:
  print("TLE")
else:
  print(a)

Fixed submission:
N,T = map(int,input().split())

ct = [list(map(int,input().split())) for i in range(N)]

c = []
t = []

for i in range(N):
    c.append(ct[i][0])
    t.append(ct[i][1])

minc = 10000

for i in range(len(c)):
    if t[i] <= T and c[i] < minc:
        minc = c[i]

if minc == 10000:
    print("TLE")
else:
    print(minc)

Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())
for i in range(N):
  c,t = list(map(int,input()))
a = 1000
for i in range(N):
  if t <= T:
    a = min(a,c)
if a = 1000:
  print("TLE")
else:
  print(a)

Fixed submission:
N,T = map(int,input().split())

ct = [list(map(int,input().split())) for i in range(N)]

c = []
t = []

for i in range(N):
    c.append(ct[i][0])
    t.append(ct[i][1])

minc = 10000

for i in range(len(c)):
    if t[i] <= T and c[i] < minc:
        minc = c[i]

if minc == 10000:
    print("TLE")
else:
    print(minc)

Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())
c,t = [map(int,input()) for i in range(N)]
a = 1000
for i in range(N):
  if t <= T:
    a = min(a,c)
if a = 1000:
  print("TLE")
else:
  print(a)

Fixed submission:
N,T = map(int,input().split())

ct = [list(map(int,input().split())) for i in range(N)]

c = []
t = []

for i in range(N):
    c.append(ct[i][0])
    t.append(ct[i][1])

minc = 10000

for i in range(len(c)):
    if t[i] <= T and c[i] < minc:
        minc = c[i]

if minc == 10000:
    print("TLE")
else:
    print(minc)

Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())
dic = {}
for i in range(N):
    dic[int(input())] = int(input())
L = sorted(dic.dict_keys)
for i in range(N):
    if dic[i] <T:
        print(L[i])
        break
print("TLE")

Fixed submission:
N,T = map(int,input().split())

ct = [list(map(int,input().split())) for i in range(N)]

c = []
t = []

for i in range(N):
    c.append(ct[i][0])
    t.append(ct[i][1])

minc = 10000

for i in range(len(c)):
    if t[i] <= T and c[i] < minc:
        minc = c[i]

if minc == 10000:
    print("TLE")
else:
    print(minc)

Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())
a= [map(int,input().split()) for i in range(N)]
b = []
for i in range(N):
    b.append(a[i][0])
L = sorted(b)
i = 0
while i < N:
    if L[i] < T:
        print(L[i])
        break
    else:
        i = i+1
        continue
if i == N:
    print("TLE")

Fixed submission:
N,T = map(int,input().split())

ct = [list(map(int,input().split())) for i in range(N)]

c = []
t = []

for i in range(N):
    c.append(ct[i][0])
    t.append(ct[i][1])

minc = 10000

for i in range(len(c)):
    if t[i] <= T and c[i] < minc:
        minc = c[i]

if minc == 10000:
    print("TLE")
else:
    print(minc)

Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())
for i in range(N):
  dic  = {int(input()):int(input())}
a = sorted(dic.get())
for i in range(N):
  if dic[a[i]] <= T:
    print(a[i])
  else:
    continue

Fixed submission:
N,T = map(int,input().split())

ct = [list(map(int,input().split())) for i in range(N)]

c = []
t = []

for i in range(N):
    c.append(ct[i][0])
    t.append(ct[i][1])

minc = 10000

for i in range(len(c)):
    if t[i] <= T and c[i] < minc:
        minc = c[i]

if minc == 10000:
    print("TLE")
else:
    print(minc)