qyliang/CodeNanoFix huggingface dataset:
Buggy code:
if input() == "1":
    print("Hello World")
else:
    print(int(input()+int(input())))

Fixed code:
if input() == "1":
    print("Hello World")
else:
    print(int(input())+int(input()))
Buggy code:
N =int(input())
if N ==1:
    print("Hello world")
elif N ==2:
    A,B =[int(input())for _ in range(2)]
    print(A+B)

Fixed code:
N =int(input())
if N ==1:
    print("Hello World")
elif N ==2:
    A,B =[int(input())for _ in range(2)]
    print(A+B)
Buggy code:
x = int(input())
a = input()
b = input()

if x == 1:
    print("Hello World")
else:
    print(int(a)+int(b))

Fixed code:
x = input()
if int(x) == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
    print("Hello World")
elif N == 2:
    print(A+B)

Fixed code:
N = int(input())

if N == 1:
    print("Hello World")
elif N == 2:
    A = int(input())
    B = int(input())

    print(A+B)
Buggy code:
x=int(input())
y=int(input())
z=int(input())
if x==1:
	print('Hello World')
else:
	print(y+z)

Fixed code:
x=int(input())
if x==1:
	print('Hello World')
else:
	y=int(input())
	z=int(input())
	print(y+z)
Buggy code:
N=int(input())
A=int(input())
B=int(input())

if N == 1:
  print("Hello World")
elif N == 2:
  print(A+B)

Fixed code:
N=int(input())

if N == 1:
  print("Hello World")
elif N == 2:
	A=int(input())
	B=int(input())
	print(A+B)
Buggy code:
N=int(input())
A=int(input())
B=int(input())

if N == 1:
  print("Hello World")
else:
  print(A+B)

Fixed code:
N=int(input())
if N==1:
    ans="Hello World"
else:
    A=int(input())
    B=int(input())
    ans=A+B
print(ans)
Buggy code:
def main():
  N = map(int, input())
  if N == 1:
    print('Hello World')
  elif N == 2:
    A = map(int, input())
    B = map(int, input())
    print(A + B)


main()

Fixed code:
def main():
  N = int(input())
  if N == 1:
    print('Hello World')
  elif N == 2:
    A = int(input())
    B = int(input())
    print(A + B)


main()
Buggy code:
N = input()

if N==1:
	print ("Hello World")
elif N==2:
 	N1 = input()
	N2 = input()
	print (N1+N2)


Fixed code:
N = int(input())

if N==1:
 print ("Hello World")
elif N==2:
 N1 = int(input())
 N2 = int(input())
 print (N1+N2)
Buggy code:
n = input()
a = int(input())
b = int(input())

if n == "1":
    print("Hello World")
elif n == "2":
    print(a + b)

Fixed code:
n = int(input())

if n == 1:
    print("Hello World")

if n == 2:
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
n = input()
a = input()
b = input()

if n == 1:
  print("Hello World")
elif n == 2:
  print(a + b)

Fixed code:
n=int(input())
if n == 1:
    print("Hello World")
elif n == 2:
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
N=int(input())
A=int(input())
B=int(input())
if(N==1):
  print("Hello World")
else:
  print(A+B)

Fixed code:
N = int(input())

if N == 1:
    print('Hello World')
else:
    A=int(input())
    B=int(input())
    print(A+B)
Buggy code:
n = int(input())
if n=1:
  print('Hello World')
else:
  a = int(input())
  b = int(input())
  print(a+b)

Fixed code:
n = int(input())

if n == 1:
    print("Hello World")

else:
    a = int(input())
    b = int(input())

    print(a+b)
Buggy code:
N=int(input())
A=int(input())
B=int(input())
if(N==1):
  print("Hello World")
if(N==2):
  print(A+B)

Fixed code:
N = int(input())

if N == 1:
    print('Hello World')
elif int(N) == 2:
    A = int(input())
    B = int(input())
    print(A+B)
Buggy code:

def main():
    n = int(input())
    a = int(input())
    b = int(input())
    if n == 1:
        print('Hello World')
    else:
        print(a + b)


if __name__ == "__main__":
    main()


Fixed code:

def main():
    n = int(input())
    if n == 1:
        print('Hello World')
    else:
        a = int(input())
        b = int(input())
        print(a + b)


if __name__ == "__main__":
    main()
Buggy code:
N=int(input())
A=int(input())
B=int(input())

if N==1:
    print('Hello World')
else : 
    print(A+B)

Fixed code:
N = int(input())

if N == 1:
    print("Hello World")
else:
    A =  int(input())
    B = int(input())
    print(A+B)
Buggy code:
N = int(input())
if N == 1:
     print("Hello World")
else:
     A =  int(input())
     B =  int(input())
     print(A+B
     




Fixed code:
N = int(input())
if N == 1:
     print("Hello World")
else:
     A =  int(input())
     B =  int(input())
     print(A+B)
Buggy code:
a=int(input())
b=int(input())
c=int(input())
if a==1:
     print("Hello World")
else:
     print(b+c)

Fixed code:
if input() == '1':
  print("Hello World")
else:
  a = int(input())
  b = int(input())
  print(a+b)
Buggy code:
N=int(input())
A=int(input())
B=int(input())
if N==1:
    print('Hello World')
else:
    print(A+B)

Fixed code:
N = int(input())
if N == 1:
  print('Hello World')
else:
  A = int(input())
  B = int(input())
  print(A + B)
Buggy code:
n = int(input())

if n == 1:
  	print("Hello World")
  
else:
  	a = int(input())
  	b = int(input())
  print(a + b)

Fixed code:
if input()=='1':
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)
Buggy code:
n  = input()

if n == "1"
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a + b)

Fixed code:
n  = input()

if n == "1":
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
#!/usr/bin/env python3
import sys
from math import *
from itertools import *
from collections import *
from functools import *
try:
    from math import gcd
except Exception:
    from fractions import gcd
readInt = lambda: int(sys.stdin.readline())
readIntN = lambda: [int(v) for v in sys.stdin.readline().split(' ')]



def main():
    n = readInt()
    a = readInt()
    b = readInt()
    result = 'Hello World' if n == 1 else (a + b)
    print(result)

if __name__ == '__main__':
    main()


Fixed code:
#!/usr/bin/env python3
import sys
from math import *
from itertools import *
from collections import *
from functools import *
try:
    from math import gcd
except Exception:
    from fractions import gcd
readInt = lambda: int(sys.stdin.readline())
readIntN = lambda: [int(v) for v in sys.stdin.readline().split(' ')]



def main():
    n = readInt()
    result = 'Hello World'
    if n == 2:
        a = readInt()
        b = readInt()
        result = a + b
    print(result)

if __name__ == '__main__':
    main()
Buggy code:
# -*- coding: utf-8 -*-
from sys import stdin

a = int(stdin.readline().rstrip())

if a == 1:
    print("Hello World")
else:
    b = int(stdin.readline().rstrip())
    c = int(stdin.readline().rstrip())
    print(a + b)

Fixed code:
# -*- coding: utf-8 -*-
from sys import stdin

a = int(stdin.readline().rstrip())

if a == 1:
    print("Hello World")
else:
    b = int(stdin.readline().rstrip())
    c = int(stdin.readline().rstrip())
    print(b + c)
Buggy code:
N=int(input())
a=int(input())
b=int(input())
if(N==1):
    print("Hello World")
else :
    print(a+b)

Fixed code:
N = int(input())
if N==1: print("Hello World")
    
else:
    a = int(input())
    b = int(input())
    print(a+b)
Buggy code:
print(int(input()) + int(input()) if int(input()) == 2 else "Hello World
")

Fixed code:
print(int(input()) + int(input()) if int(input()) == 2 else "Hello World")
Buggy code:
n = int(input())
a = int(input())
b = int(input())
if n==1:
    print('Hello World')
else:
    print(a+b)

Fixed code:
n = int(input())

if n == 1 :
    print('Hello World')
else :
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
import numpy as np,math,itertools
n=int(input())
a=int(input())
b=int(input())
if n==1:print("Hello World")
else:print(a+b)

Fixed code:
import numpy as np,math,itertools
n=int(input())
if n==1:print("Hello World")
else:
    a=int(input())
    b=int(input())
    print(a+b)
Buggy code:
if input()=="1":
  print("Hello World!")
else:
  print(sum([int(input()) for i in range(2)]))

Fixed code:
if input()=="1":
  print("Hello World")
else:
  print(sum([int(input()) for i in range(2)]))
Buggy code:
import io
import sys

def solve():
    
    line1 = sys.stdin.readline().rstrip()
    line2 = sys.stdin.readline().rstrip()
    line3 = sys.stdin.readline().rstrip()
    if int(line1) == 1:
        return "Hello World"
    else:
        return int(line2)+int(line3)
solve()

Fixed code:
import io
import sys

def solve():
    line1 = sys.stdin.readline().rstrip()
    line2 = sys.stdin.readline().rstrip()
    line3 = sys.stdin.readline().rstrip()
    if int(line1) == 1:
        print("Hello World")
    else:
        print(int(line2)+int(line3))
solve()
Buggy code:
age = int(input())

if age == 1:
    print(Hello World)
else:
    a = int(input())
    b = int(input())
    print(a + b)

Fixed code:
age = int(input())

if age == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
    print("Hello World")
if N == 2:
    print(A + B)

Fixed code:
N = int(input())

if N==1:
    print('Hello World')
elif N==2:
    A = int(input())
    B = int(input())
    print(A+B)
Buggy code:
if input() == 1:
    print('Hello World')
else:
    print(input() + input())

Fixed code:
if input()=="1":
  print("Hello World")
else:
  print(int(input())+int(input()))
Buggy code:
if input() ==1:
  'Hello World'
else:
  A = int(input())
  B = int(input())
  print(A+B)

Fixed code:
if int(input()) ==1:
  print('Hello World')
else:
  A = int(input())
  B = int(input())
  print(A+B)
Buggy code:
N = int(input())
if N == 1:
    print('Hello World')
else N == 2:
    A = int(input())
    B = int(input())
    print(A+B)

Fixed code:
N = int(input())

if N == 1:
    print("Hello World")
else:
    A = int(input())
    B = int(input())
    print(A+B)
Buggy code:
n = int(input())
if(n == 1):
    print("Hello World",end="")
else:
    b = int(input())
    print(n+b,end="")

Fixed code:
n = int(input())
if(n == 1):
    print("Hello World",end="")
else:
    a = int(input())
    b = int(input())
    print(a+b,end="")
Buggy code:
n=int(input())
if n==1:
    print('Hello World!')
else:
    a=int(input())
    b=int(input())
    print(a+b)

Fixed code:
n = int(input())
if(n == 1):
  print("Hello World")
else:
  a = int(input())
  b = int(input())
  print(a+b)
Buggy code:
n = input()
if(n == 1):
  print("Hello World")
else:
  print(input() + input())


Fixed code:
n = int(input())
 
if n == 1:
  print("Hello World")
else:
  print(int(input())+int(input()))
Buggy code:
n = int(input())

if n = 1:
  print("Hello World")
else:
  print(int(input())+int(input()))




Fixed code:
n = int(input())
print("Hello World" if n == 1 else (int(input()) + int(input())))
Buggy code:
a=int(input())
b=int(input())
c=int(input())
if a==1:
  print("Hello World")
if a==2:
  print(b+c)

Fixed code:
a=int(input())
if a==1:
  print("Hello World")
if a==2:
  b=int(input())
  c=int(input())
  print(int(b+c))
Buggy code:
n = input()
if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)

Fixed code:
n = int(input())
if n==1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)
Buggy code:
n = int(input())
a = int(input())
b = int(input())
if n == 1:
  print('Hello World')
else:
  print(a+b)

Fixed code:
n = int(input())
if n == 1:
  print('Hello World\n')
else:
  a = int(input())
  b = int(input())
  print(a + b)
Buggy code:
N = int(input())
A = int(input())
B = int(input())
if N ==1:
  print('Hello World')
else:
  print(A+B)

Fixed code:
N = input()
if int(N) == 1:
    print("Hello World")
else:
    A = int(input())
    B = int(input())
    print(A + B)
Buggy code:
n=int(input())
a=int(input())
b=int(input())
c=a+b
print("Hello World" if n==1 else str(c) if n==2)

Fixed code:
n=int(input())
if n==2:
  a=int(input())
  b=int(input())
  c=a+b
print("Hello World" if n%2==1 else str(c))
Buggy code:
def main():
    N=int(input('N?>'))

    if N==1:
        print('Hello World')
    elif N==2:
        A=int(input('A?>'))
        B=int(input('B?>'))
        print(A+B)

if __name__ == '__main__':
    main()

Fixed code:
def main():
    N=int(input())

    if N==1:
        print('Hello World')
    elif N==2:
        A=int(input())
        B=int(input())
        print(A+B)

if __name__ == '__main__':
    main()
Buggy code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
  print("Hello World")
else:
  print(A+B)

Fixed code:
N=int(input())

if N==1:
    print('Hello World')
else:
    A =int(input())
    B =int(input())
    C=A+B 
    print(C)
Buggy code:
n = int(input())

if n == 1:
  print('Hello World')
else:
  a = input()
  b = input()
  print(a+b)

Fixed code:
n = int(input())


if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)
Buggy code:
N = int(input())
if N == 1:
  print("Hello World")
if N == 2:
  A = input()
  B = input()
  print(A+B)
  

Fixed code:
N = input()

if N == '1':
    print('Hello World')
elif N =='2':
    A =int(input())
    B =int(input())
    print(A+B)
Buggy code:
a = int(input())
if a == 1:
    print("Hello World")
    exit()
else:
    b = int(input())
    c = int(input())
    print(a+b)

Fixed code:
a = int(input())
if a == 1:
    print("Hello World")
    exit()
else:
    b = int(input())
    c = int(input())
    print(b+c)
Buggy code:
n = int(input())
a = input()
b = input()
print('Hello World' if n ==1 else int(a)+int(b))

Fixed code:
n=int(input())
if n==1:
  print("Hello World")
else :
  a=int(input())
  b=int(input())
  print(a+b)
Buggy code:
N=int(input("N="))
if N == 1:
	print('HelloWorld')
elif N == 2:
	A=int(input("A="))
	B=int(input("B="))
	print(A+B)

Fixed code:
N = int(input())
if N == 1:
    print('Hello World')
elif N == 2:
    A = int(input())
    B = int(input())
    print(A+B)
Buggy code:
N = input()
A = int(input())
B = int(input())

if N > 1:
  print(A+B)
else:
  print("Hello World")

Fixed code:
N = int(input())
if N==1:
    print('Hello World')
else:
    A = int(input())
    B = int(input())
    print(A + B)
Buggy code:
N = int(input())
A = int(input())
B = int(input())

if N = 2:
  print(A+B)
elif N =1:
  print("Hello World")

Fixed code:
N = int(input())
if N ==1:
  print("Hello World")
elif N == 2:
  A = int(input())
  B = int(input())
  print(A+B)
Buggy code:
n = int(input())
a = int(input())
b = int(input())

print('Hello World' if n==1 else a+b)


Fixed code:

n=int(input())
if n==1:
    print('Hello World')
else:
    a=int(input())
    b=int(input())
    print(a+b)
Buggy code:
if input()="1":
    print("Hello World")
else:
    print(int(input())+int(input()))

Fixed code:
n = int(input())
if n == 1:
    print("Hello World")
else:
    print(int(input()) + int(input()))
Buggy code:
N = input()
if N == 1:
    print('Hello World')
else:
    print(int(input()) + int(input()))


Fixed code:
N = int(input())
if N == 1:
    print('Hello World')
else:
    print(int(input()) + int(input()))
Buggy code:
N = int(input())
if N == 1:
    print('Hello World')
else:
    a = input(input())
    b = input(input())
    print(a + b)

Fixed code:
N = int(input())
if N == 1:
    print('Hello World')
else :
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
n = int(input())
a = int(input())
b = int(input())

if n == 1:
    print("Hello World")
else:
    print(a + b)

Fixed code:
n = int(input())
if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a + b)  
exit()
Buggy code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
  print("Hello World")
  
elif N == 2:
  print(A + B)

Fixed code:
N = int(input())

if N == 1:
  print("Hello World")
  
elif N == 2:
  A = int(input())
  B = int(input())
  print(A + B)
Buggy code:
n = int(input())
if n in 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)


Fixed code:
n=int(input())
if n==1:print('Hello World')
else:
  a=int(input())
  b=int(input())
  print(a+b)
Buggy code:
n=int(input())
a=int(input())
b=int(input())
if n==1:print('Hello World')
elif n==2:print(a+b)

Fixed code:
n = int(input())
if n == 1:
    print("Hello World")
if n == 2:
    a = int(input())
    b = int(input())
    print(a + b)
Buggy code:
print("Hello World"if input()=="1"else int(input())+int(input())

Fixed code:
if int(input())==1:
    print("Hello World")
else:
    print(int(input())+int(input()))
Buggy code:
N = int(input())
if N == 1:
  print('Hello World')
elif N == 2:
 {
   A = int(input())
   B = int(input())
   print(A+B)
 }
else:
  pass


Fixed code:
N = int(input())
if N == 1:
  print('Hello World')
elif N == 2:
    A = int(input())
    B = int(input())
    print(A+B)
else:
  pass
Buggy code:
n = int(input())
a = int(input())
b = int(input())
if n == 1:
  print("Hello World")
else:
  print(a + b)

Fixed code:
n=int(input())
if n==1:
  print("Hello World")
else:
   a=int(input())
   b=int(input())
   print(a+b)
Buggy code:
a = input()
print("Hello World") if a=="1" else int(input())+int(input())

Fixed code:
a = input()
print("Hello World") if a=="1" else print(int(input())+int(input()))
Buggy code:
N = input()
if N == 1:
    print("Hello World")
else:
    A = int(input())
    B = int(input())
    print(A + B)

Fixed code:
N = int(input())
if N == 1:
  print("Hello World")
else:
  A = int(input())
  B = int(input())
  print(int(A+B))
Buggy code:
n = int(input())
a = int(input())
b = int(input())
if n == 1:
    print("Hello World")
else:
    print(a + b)


Fixed code:
if int(input())==1:
    print('Hello World')
else:
    a = int(input())
    b = int(input())
    print(a+b)
Buggy code:
N=int(input())
A=int(input())
B=int(input())

if(N==1):
    print("Hello World")
elif(N==2):
    print(A+B)


Fixed code:
N = int(input())

if N == 1:
	answer = "Hello World"
	print(answer)
elif N == 2:
	A = int(input())
	B = int(input())
	answer = A + B
	print(answer)
Buggy code:
if int(input()) == 2:
  print(int(input())+int(int(input())
else:
  print('Hello World')
  

Fixed code:
if int(input()) == 2:
  print(int(input())+int(input()))
else:
  print('Hello World')
Buggy code:
n = int(input())
    if n == 1:
        print("Hello World")
    elif n == 2:
        a = int(input())
        b = int(input())
        print(a+b)

Fixed code:
n = int(input())
if n == 1:
    print("Hello World")
elif n == 2:
    a, b = int(input()), int(input())
    print(a + b)
Buggy code:
N = input()
if N == 1:
    print('Hello World')
elif N == 2:
    A = input()
    B = input()
    print(A+B)


Fixed code:
N = input()
if N == '1':
    print('Hello World')
elif N == '2':
    A = int(input())
    B = int(input())
    print(A+B)
Buggy code:
import sys
N=input()
if N == 1:
	print("Hello World")
elif N == 2:
	a=input()
	b=input()
	print(a+b)


Fixed code:
import sys
N=int(input())
if N == 1:
	print("Hello World")
elif N == 2:
	a=int(input())
	b=int(input())
	print(a+b)
Buggy code:
N = int(input())
A = int(input())
B = int(input())
if N == 1:
  print("Hello World")
else:
  print(A+B)

Fixed code:
N = int(input())

if N == 1 :
    print("Hello World")
else :
    A = int(input())
    B = int(input())
    print(A+B)
Buggy code:
n = int(input())
if n == 1:
	print("Hello World")
elif n == 2:
	a = int(input())
    b = int(input())
    print(a+b)

Fixed code:
n = int(input())
if n == 1:
	print("Hello World")
elif n == 2:
	a = int(input())
	b = int(input())
	print(a+b)
Buggy code:
i = [int(input()) for i in range(3)]

if i[0]==1:
  print("Hello World")
else:
  print(i[1]+i[2])

Fixed code:
n = int(input())
if n==1:
  print("Hello World")
else:
  i = [int(input()) for i in range(2)]
  print(i[0]+i[1])
Buggy code:
N, T = map(int, input().split())

ct = [list(map(int, input().split())) for i in range(N)]
minnum = 9999999
for c, t in ct:
    if t <= T:
        if minnum >= c:
            minnum = c

print(minnum if minnum != 999 else 'TLE')


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

ct = [list(map(int, input().split())) for i in range(N)]
minnum = 9999
for c, t in ct:
    if t <= T:
        if minnum >= c:
            minnum = c

print(minnum if minnum != 9999 else 'TLE')
Buggy code:
li = str(input).split(" ")
NT = list(map(int,li))
N = NT[0]
T = NT[1]
i = 1
mi = 9999
while i <= 3:
    a = list(map(int,input.split()))
    c = a[0]
    t = a[1]
    if t <= T and c < mi:
        mi = c
    i += 1

if mi == 9999:
    print("TLE")
else:
    print()


Fixed code:
Input = input()
li = Input.split(" ")
NT = list(map(int,li))
N = NT[0]
T = NT[1]
i = 1
mi = 9999

while i <= N:
    Input = input()
    li = Input.split(" ")
    a = list(map(int,li))
    c = a[0]
    t = a[1]
    if t <= T and c < mi:
        mi = c
    i += 1

if mi == 9999:
    print("TLE")
else:
    print(mi)
Buggy code:
N,T = map(int,(list(input().split())))
cost = 1001
for _ in range(N):
    c,t = map(int,(list(input().split())))
    if t<=T:
        cost=c
if cost == 1001:
    print('TLE')
else:
    print(cost)



Fixed code:
N,T = map(int,(list(input().split())))
cost = 1001
for _ in range(N):
    c,t = map(int,(list(input().split())))
    if t<=T:
        cost=min(cost,c)
if cost == 1001:
    print('TLE')
else:
    print(cost)
Buggy code:
n, T = map(int, input().split())
    
ans = 10**9
for _ in range(n):
    c, t = map(int, input().split())
    if t < T and c < ans:
        ans = c
    
if ans == 10**9:
    print('TLE')
else:
    print(ans)

Fixed code:
n, T = map(int, input().split())
    
ans = 10**9
for _ in range(n):
    c, t = map(int, input().split())
    if t <= T and c < ans:
        ans = c
    
if ans == 10**9:
    print('TLE')
else:
    print(ans)
Buggy code:
n, t = list(map(int, input().split()))
data = []
for i in range(n):
    data.append(list(map(int, input().split())))
minCost = 1001
for i in range(n):
    if data[i][1] <= t:
        minCost = data[i][0]

if minCost == 1001:
    print("TLE")
else:
    print(minCost)

Fixed code:
n, t = list(map(int, input().split()))
data = []
for i in range(n):
    data.append(list(map(int, input().split())))
minCost = 1001
for i in range(n):
    if data[i][1] <= t and minCost > data[i][0]:
        minCost = data[i][0]

if minCost == 1001:
    print("TLE")
else:
    print(minCost)
Buggy code:
N, T =(int(x) for x in input().split())
for i in range(N):
    c, t =(int(z) for z in input().split())
    if i == 0:
        a = t
        b = c
    if a > t:
        if t <= T:
            b = c
            a = t
    else:
        pass
if a > T:
    print('TLE')
else:
    print(b)

Fixed code:
N, T =(int(x) for x in input().split())
a = 1001
b = 1001
for i in range(N):
    c, t =(int(z) for z in input().split())
    if c <= b:
        if t <= T:
            a = t
            b = c
    else:
        pass
if T >= a:
    print(b)
else:
    print('TLE')
Buggy code:
N, T = map(int, input().split())
a = []
for i in range(N):
    a.append(list(map(int, input().split())))

b = []
count = 0
for i in range(N):
    if a[i][1] <= T:
        b.append(a[i][0])
if count == 0:
    print('TLE')

else:
    print(min(b))


Fixed code:
N, T = map(int, input().split())
a = []
for i in range(N):
    a.append(list(map(int, input().split())))

b = []
count = 0
for i in range(N):
    if a[i][1] <= T:
        b.append(a[i][0])
        count += 1
if count == 0:
    print('TLE')

else:
    print(min(b))
Buggy code:
N, T = map(int, input().split())

cost = 1001
for i in range(N):
  c, t = map(int, input().split())
  if t <= T:
    cost = min(cost, t)
  else:
    continue

if cost == 1001:
  print("TLE")
else:
  print(cost)

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

cost = 1001
for i in range(N):
  c, t = map(int, input().split())
  if t <= T:
    cost = min(cost, c)
  else:
    continue

if cost == 1001:
  print("TLE")
else:
  print(cost)
Buggy code:
n, t = map(int, input().split())
w_dic = {}
for i in range(n):
  w, w_t = map(int, input().split())
  if w_t < t:
    w_dic[i+1] = w
if w_dic:
  print(min(w_dic, key=w_dic.get))
else:
  print("TLE")
    

Fixed code:
n, t = map(int, input().split())
w_dic = {}
for i in range(n):
  w, w_t = map(int, input().split())
  if w_t <= t:
    w_dic[i+1] = w
if w_dic:
  print(min(w_dic.values()))
else:
  print("TLE")