Buggy python submission (verdict: Runtime Error):
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
T = []

for h in range(n):
  T.append(ct[i][1])
  
if min(T) > t:
  print("TLE")
  exit()
else:
  for j in range(n):
    if ct[j][1] <= t:
    c = ct[j][0]
    k = j
    break
 

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)

Fixed submission:
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
T = []

for h in range(n):
  T.append(ct[h][1])
  
if min(T) > t:
  print("TLE")
  exit()
else:
  for j in range(n):
    if ct[j][1] <= t:
      c = ct[j][0]
      k = j
      break
 

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)

Buggy python submission (verdict: Runtime Error):
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]

for j in range(n):
  if ct[j][1] <= t:
    c = ct[j][0]
    k = j
    break

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)

Fixed submission:
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
T = []

for h in range(n):
  T.append(ct[h][1])
  
if min(T) > t:
  print("TLE")
  exit()
else:
  for j in range(n):
    if ct[j][1] <= t:
      c = ct[j][0]
      k = j
      break
 

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)

Buggy python submission (verdict: Runtime Error):
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]

for j in range(n):
  if ct[j][1] <= t:
    c = ct[j][0]
    k = j
    break

for i in range(k+1,n):
  if ct[i][1] < t:
    c = min(c,ct[i][0])
    
print(c)

Fixed submission:
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
T = []

for h in range(n):
  T.append(ct[h][1])
  
if min(T) > t:
  print("TLE")
  exit()
else:
  for j in range(n):
    if ct[j][1] <= t:
      c = ct[j][0]
      k = j
      break
 

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)

Buggy python submission (verdict: Runtime Error):
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
C = []
T1 = []

for i in range(n):
  C.append(ct[i][0])
  T1.append(ct[i][1])

if min(T1) >= t:
  print("TLE")

for i in range(n):
  mc = min(C)
  if ct[C.index(min(C))][1] >= t:
    C.remove(min(C))
    ct.remove(ct[C.index(min(C))])
  else:
    break
    
print(min(C))

Fixed submission:
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
T = []

for h in range(n):
  T.append(ct[h][1])
  
if min(T) > t:
  print("TLE")
  exit()
else:
  for j in range(n):
    if ct[j][1] <= t:
      c = ct[j][0]
      k = j
      break
 

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)

Buggy python submission (verdict: Runtime Error):
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
C = []
T1 = []

for i in range(n):
  C.append(ct[i][0])
  T1.append(ct[i][1])

if min(T1) > t:
  print("TLE")

for i in range(n):
  mc = min(C)
  if ct[C.index(min(C))][1] > t:
    C.remove(min(C))
    ct.remove(ct[C.index(min(C))])
  else:
    break
    
print(min(C))

Fixed submission:
n,t = map(int,input().split())
ct = [list(map(int,input().split())) for i in range(n)]
T = []

for h in range(n):
  T.append(ct[h][1])
  
if min(T) > t:
  print("TLE")
  exit()
else:
  for j in range(n):
    if ct[j][1] <= t:
      c = ct[j][0]
      k = j
      break
 

for i in range(k+1,n):
  if ct[i][1] <= t:
    c = min(c,ct[i][0])
    
print(c)