qyliang/CodeNanoFix huggingface dataset:
Buggy code:
n=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())
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(int(a+b))
Buggy code:
X=int(input())
if X=1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)

Fixed code:
X=int(input())
if X==1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)
Buggy code:
#!/usr/bin/env pypy3


def get_line():
    return input()


def get_tokens():
    return get_line().split()


def get_ints():
    return [int(_) for _ in get_tokens()]


def main():

    n, = get_ints()
    A, = get_ints()
    B, = get_ints()
    print('Hello World' if n == 1 else A + B)

if __name__ == '__main__':
    main()

Fixed code:
#!/usr/bin/env pypy3


def get_line():
    return input()


def get_tokens():
    return get_line().split()


def get_ints():
    return [int(_) for _ in get_tokens()]


def main():

    n, = get_ints()
    if n == 1:
        print('Hello World')
    else:    
        A, = get_ints()
        B, = get_ints()
        print(A+B)
        
if __name__ == '__main__':
    main()
Buggy code:
N = int(intput())

if N == 1:
  print('Hello World')

else:
  print(sum([int(input()) for i in range(2)]))


Fixed code:
N = int(input())

if N == 1:
  print('Hello World')

else:
  print(sum([int(input()) for i in range(2)]))
Buggy code:
X = int(input())
if X == 1:
  print("Hello World")
else:
  A = int(input())
  B = int(input()
  print(A + B)

Fixed code:
X = int(input())
if 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")
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:
  ans = "Hello World"
else:
  a = int(input())
  b = int(input())
  ans = a+b
print(ans)
Buggy code:
if int(input())==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:
n = int(input())

print('Hello World' if n == 1)

if n == 2:
    for _ in range(2):
        a = [int(input())]

    print(sum(a))

Fixed code:
n = int(input())

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

if n == 2:
    a = [int(input()) for _ in range(2)]

    print(sum(a))
Buggy code:
n=int(input())

if n==1:
	print('Helo World')
else:
	x=list(int(input()) for _ in range(2))
	print(x[0]+x[1])

Fixed code:
n=int(input())

if n==1:
	print('Hello World')
else:
	x=list(int(input()) for _ in range(2))
	print(x[0]+x[1])
Buggy code:
a=int(input())
b=int(input())
c=int(input())
if a==1:
  print("Hello World")
else:
  print(int(b+c))
  

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

Fixed code:
a = int(input())
if a==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:
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")
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())

     c = a + b
     print(c)
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())
if n == 1:
    print('Hello world')
else:
    print(sum([int(input()) for i in range(n)]))

Fixed code:
n = int(input())
if n == 1:
    print('Hello World')
else:
    print(sum([int(input()) for i in range(n)]))
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 = input()
        B = input()
        print (int(A)+int(B))
Buggy code:
n = int(input())

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

Fixed code:
n = int(input())

if n == 2:
  a = int(input())
  b = int(input())
  print(a + b)
else:
  print('Hello World')
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==1:
    print("Hello World")
elif N==2:
    A=int(input())
    B=int(input())
    print(str(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:
# -*- coding: utf-8 -*-

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

Fixed code:
# -*- coding: utf-8 -*-

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

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

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

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

Fixed code:
#coding: utf-8

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


Fixed code:
w=int(input())
if w == 1:
    print("Hello World")
elif w == 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")
elif N == 2:
  print(A+B)

Fixed code:
# A
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==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:
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())
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 == 2:
    a = int(input())
    b = int(input())
    print(a+b)
elif n == 1:
    print("Hello World")
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 == 2:
    a = int(input())
    b = int(input())

if n ==1:
    print("Hello World")
else:
    print(a+b)
Buggy code:
N = input()
A = input()
B = 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(int(A+B))
Buggy code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
N = int(input())
if N == 1:
    print('Hallo World')
else:
    A,B = [int(input()),int(input())]
    print(A +B)


Fixed code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
N = int(input())
if N == 1:
    print('Hello World')
else:
    A,B = [int(input()),int(input())]
    print(A +B)
Buggy code:
N = input()
A = input()
B = input()
if N == 1:
  print("Hello World")
else:
  print(int(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:
    a=int(input())
    b=int(input())
    print(a+b)

Fixed code:
n = int(input())
if n == 1:
  print('Hello World')
  exit()
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())
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")
if N==2:
   A=int(input())
   B=int(input())
   print(A+B)
Buggy code:
n=int(input())
a,b=int(input()),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())
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 = [input() for i in range(n)]
if n ==1 :
  print("Hello World")
else :
  print(a[o]+ a[1])

Fixed code:
n = int(input())
if n ==1 :
  print("Hello World")
else :
  a = [int(input()) for i in range(n)]
  print(a[0] + a[1])
Buggy code:
N=input()
A=int(input())
B=int(input())
if N=="1":
  print("Hello World")
else:
  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:
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:
#abc112_a

AGE_1 = 1
AGE_2 = 2

def main():
    a = int(input("Enter age: "))
    if a == AGE_1:
        print ("Hello World")
    elif AGE_2:
        A = int(input("Enter integer A: "))
        B = int(input("Enter integer B: "))
        output = A + B
        print ("{}".format(str(output)))

if __name__ == "__main__": main()


Fixed code:
#abc112_a

AGE_1 = 1
AGE_2 = 2

def main():
    a = int(input(""))
    if a == AGE_1:
        print ("Hello World")
    elif AGE_2:
        A = int(input(""))
        B = int(input(""))
        output = A + B
        print ("{}".format(str(output)))

if __name__ == "__main__": main()
Buggy code:
IN=open(0).read().split()
if len(IN)==1:
  print("Hello world")
else:
  print(int(IN[1])+int(IN[2]))

Fixed code:
IN=open(0).read().split()
if len(IN)==1:
  print("Hello World")
else:
  print(int(IN[1])+int(IN[2]))
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())
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())
    print(a+int(input()))
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 sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = int(input())

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

Fixed code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = int(input())

    if a ==1:
        print("Hello World")
    else:
        b =int(input())
        c = int(input())
        print(b+c)
Buggy code:
n=list(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=input()
    b=input()
    print(int(a)+int(b))
Buggy code:
def main():
    N = int(input())
    if N == 1 :
        print("Hello,World!")
    elif N == 2 :
        A = int(input())
        B = int(input())
        print(A + B)
    else:
        pass

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)
    else:
        pass

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

if N == 1:
  print('Hello World')

else:
  A = int(imput())
  B = int(imput())
  
  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 = input()
if N == '1':
  print("Hello World")
else:
  print(int(input()) + int(input())

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

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

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

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

Fixed code:
N = int(input())

if( N == 1):
  print('Hello World')
  
if( N ==2):
  A = int( input())
  B = int( input())
  print( int( A + B))
Buggy code:
n = [int(input()) for i in range(3)]

if n[0] ==1:
    print('Hello World')

else:
    print(n[1]+n[2])

Fixed code:
n = int(input())

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

else:
    ab = [int(input()) for i in range(2)]
    print(ab[0]+ab[1])
Buggy code:
N=int(input())
if N==1:
  print ('Hello World')
else:
  A=int(input())
  B=int(input())
  pirnt (A+B)

Fixed code:
N = 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 = input()
    b = input()
    print(a +b)

Fixed code:
n=int(input())
if n==2:
  a=int(input())
  b=int(input())
if n==1:
  print("Hello World")
else:
  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:
n = 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 = input()

if N == '1':
	print("Hello World")
    
else:
  print(input() + input())

Fixed code:
N = input()

if N == '1':
    print("Hello World")

else:
    print(int(input()) + int(input()))
Buggy code:
n = input()
a = input()
b = input()
n = int(n)
a = int(a)
b = int(b)
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 = int(input())

if a == 1:
    print('Hello World')
else:
    sumsum = 0.0
    for i in range(2):
        sumsum += int(input())
        
    print(sumsum)

Fixed code:
a = int(input())

if a == 1:
    print('Hello World')
else:
    sumsum = 0
    for i in range(2):
        sumsum += int(input())
        
    print(sumsum)
Buggy code:
N = int(input())
if N==1:
    print('Hello world')
else:
    AB = [int(input()) for i in range(2)]
    print(sum(AB))

Fixed code:
N = int(input())
if N==1:
    print('Hello World')
else:
    AB = [int(input()) for i in range(2)]
    print(sum(AB))
Buggy code:
xx=int(input())
if(x==1):
  print("Hello World")
else:
  x=int(input())
  y=int(input())
  print(x+y)


Fixed code:
x=int(input())
if(x==1):
  print("Hello World")
else:
  x=int(input())
  y=int(input())
  print(x+y)
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 a == 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 = int(input())
num = 0
if a == 1:
  print("Hello World")
else:
  num = [int(input()) for i in range(2)]


Fixed code:
a = int(input())
num = 0
if a == 1:
  print("Hello World")
else:
  num = [int(input()) for i in range(2)]
  print(num[0]+num[1])
Buggy code:
a=int(input())
b=input()
c=input()
if a==1:
    print('Hello World')
else:
    print(int(b)+int(c))
    

Fixed code:
a=input()
if a=='1':
  print("Hello World")
else:
  b=input()
  c=input()
  print(int(b)+int(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(int(A) + int(B))
Buggy code:
age = int(input())
A = int(input())
B = int(input())

if age == 1:
  print("Hello World")
  
else:
  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=input()
A=input()
B=input()
N=int(N)
A=int(A)
B=int(B)
x=A+B
if N==1:
    print("Hello World")
else:
    print(x)

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())
if n==2:
    a=int(input())
    b=int(input())
    print(a+b)
else:
    print('Hello World!')

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

Fixed code:
print("Hello World" if input() == "1" else (int(input()) + int(input())))
Buggy code:
import sys
n = int(input())
if n == 1:
	print('Hello World)
	sys.exit()
print(sum([int(input()) for _ in range(2)]))

Fixed code:
import sys
n = int(input())
if n == 1:
	print('Hello World')
	sys.exit()
print(sum([int(input()) for _ in range(2)]))
Buggy code:
N = int(input(""))

if N == 1:
    print('Hello World')
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())
    C=A+B
    print(C)
Buggy code:
N = int(input(""))

if n == 1:
    print('Hello World')
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:
input_num = input()

if input_num != 1:
    a = int(input())
    b = int(input())
    print(a + b)
else:
    print('Hello World')

Fixed code:
input_num = input()

if input_num == '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())

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:
N=int(input)
if N == 1:
  print("Hello World")
else:
  print(str(int(input()) + int(input()))

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


Fixed code:
n=int(input())

print("Hello World" if n==1 else int(input())+int(input()))
Buggy code:
n=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:
def main():
    N= input()
    A= int(input())
    B= int(input())

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

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

        
main()
Buggy code:
N = int(input())
A,B = [int(input()) for i in range(2)]
  
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,B = [int(input()) for i in range(2)]
  print(A+B)
Buggy code:
N = int(input())
s = [int(input()) for i in range(2)]
  
if N==1:
  print('Hello World')

elif N==2:
  print(s[0]+s[1])

Fixed code:
N = int(input())
  
if N==1:
  print('Hello World')

elif N==2:
  s = [int(input()) for i in range(2)]
  print(s[0]+s[1])
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')
if n == 2:
    a = int(input())
    b = int(input())
    print(a+b)
Buggy code:
N = int(input)
if N == 1:
    print("Hello World")
else :
    A , 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:
if input() == '1':
  print(Hello World)
else:
  print(eval(input()+'+'+input()))

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

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