qyliang/CodeNanoFix huggingface dataset:
Buggy code:
import numpy as np

n=int(input())



a= list(map(int,input().split()))
a=np.array(a,np.int64)

print(a)
max=60
mod=10**9+7
ans=0
cnt1=0
cnt0=0


for i in range(max):
    new_a=(a>>i & 1)

    cnt1=np.count_nonzero(new_a)
    cnt0=n-cnt1
    ans=(ans+cnt1*cnt0*(2**i))%mod
    cnt1=0
    cnt0=0
print(ans)
            
    
    



Fixed code:
import numpy as np

n=int(input())



a= list(map(int,input().split()))
a=np.array(a,np.int64)


max=60
mod=10**9+7
ans=0
cnt1=0
cnt0=0


for i in range(max):
    new_a=(a>>i & 1)

    cnt1=np.count_nonzero(new_a)
    cnt0=n-cnt1
    ans=(ans+cnt1*cnt0*(2**i))%mod
    cnt1=0
    cnt0=0
print(ans)
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if (mi != m2):
    print("1")
else:
    print("0")

Fixed code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())

if d2 == 1:
    print('1')
else:
    print('0')
Buggy code:

M1, D1 = int(input.split())
M2, D2 = int(input.split())

print(M1,M2)

if M1 != M2:
    print(1)
else:
    print(0)

Fixed code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if M1!=M2:
  print(1)
else:
  print(0)
Buggy code:
m1,d1=map(int(input().split())
m2,d2=map(int(input().split())
if d1+1==d2:
    print(0)
else:
    print(1)


Fixed code:
m1,d1 = map(int, input().split())
m2,d2 = map(int, input().split())

if m2 != m1:
  print(1)
else:
  print(0)
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
print(m1 == m2 if 1 else 0)


Fixed code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())
if m1==m2:
    print(0)
else:
    print(1)
Buggy code:
print(1-input()[:2]in input())


Fixed code:
print(1-(input()[:2]in input()))
Buggy code:
print(1 if int(input().split()[2])==1 else 0)

Fixed code:
input()
print(1 if int(input().split()[1])==1 else 0)
Buggy code:
a, b = map(int, input().split())

c, d = map(int, input().split())

if a != b:
    print(1)
else:
    print(0)


Fixed code:
a, b = map(int, input().split())

c, d = map(int, input().split())

if a != c:
    print(1)
else:
    print(0)
Buggy code:
m1, d1 = input().split()
m1, d2 = input().split()
d2 = int(d2)
result = 0

if d2 == 1
  result = 1
print(result)

Fixed code:
m1, d1 = input().split()
m1, d2 = input().split()
d2 = int(d2)
result = 0

if d2 == 1:
  result = 1
print(result)
Buggy code:
m1, d1, m2, d2 = map(int, input().split())
if m1 == m2:
  print('0')
else:
  print('1')

Fixed code:
m1,d1 = map(int, input().split())
m2,d2 = map(int, input().split())

if m1==m2:
  print(0)
else:
  print(1)
Buggy code:
M_1, D_1 = map(int, input().split())
M_2, D_2 = map(int, input().split())

if M_1 != M_2:
  print('0')
else:
  print('1')


Fixed code:
M_1, D_1 = map(int, input().split())
M_2, D_2 = map(int, input().split())

if M_1 != M_2:
  print(1)
else:
  print(0)
Buggy code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if M1 in [1, 3, 5, 7, 8, 10, 12]:
	if D1 == 31:
		print("1")
	else:
		print("0")
else if M1 == 2:
	if D1 == 28:
		print("1")
	else:
		print("0")
else:
	if D1 == 30:
		print("1")
	else:
		print("0")

Fixed code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if M1 in [1, 3, 5, 7, 8, 10, 12]:
	if D1 == 31:
		print("1")
	else:
		print("0")
elif M1 == 2:
	if D1 == 28:
		print("1")
	else:
		print("0")
else:
	if D1 == 30:
		print("1")
	else:
		print("0")
Buggy code:
str  = [input() for i in range(2)]
s1 = str[0].split()
s2 = str[1].split()
 
if s1[0] != s2[1] and int(s1[1]) != int(s2[1]):
  print("1")
else:
  print("0")

Fixed code:
str  = [input() for i in range(2)]
s1 = str[0].split()
s2 = str[1].split()
 
if s1[0] != s2[0] and int(s1[1]) >= int(s2[1]):
  print("1")
else:
  print("0")
Buggy code:
M1, M2, D1, D2 = map(int, input().split())

if M2 - M1 == 0:
    print(0)
else:
    print(1)

Fixed code:
M1,D1=map(int, input().split())
M2,D2=map(int, input().split())
if M2 != M1:
  print(1)
else:
  print(0)
Buggy code:
a, _ = map(int, input().split())
c, d = map(int, input().split())
 
if a == c and d == 1:
    print("1")
else:
    print("0")

Fixed code:
a, _ = map(int, input().split())
c, d = map(int, input().split())

if a != c and d == 1:
    print("1")
else:
    print("0")
Buggy code:
import sys
input = sys.stdin.readline

A,B = map(int,input().split())
C,D = map(int,input().split())

if (A == 1 or A == 3 or A == 5 or A == 7 or A == 8 A == 10 or A == 12):
  if B == 31:
    print(1)
  else:
    print(0)
elif (A == 4 or A == 6 or A== 9 or A == 11):
  if B == 30:
    print(1)
  else:
    print(0)
elif A == 2:
  if B == 28:
    print(1)
  else:
    print(0)

Fixed code:
import sys
input = sys.stdin.readline

A,B = map(int,input().split())
C,D = map(int,input().split())

if (A == 1 or A == 3 or A == 5 or A == 7 or A == 8 or A == 10 or A == 12):
  if B == 31:
    print(1)
  else:
    print(0)
elif (A == 4 or A == 6 or A== 9 or A == 11):
  if B == 30:
    print(1)
  else:
    print(0)
elif A == 2:
  if B == 28:
    print(1)
  else:
    print(0)
Buggy code:
M1,D1 = map(int, input().split())
M2,D2 = map(int, input().split())

if M1 == M2:
    print('1')
else:
    print('0')

Fixed code:
M1,D1 = map(int, input().split())
M2,D2 = map(int, input().split())

if M1 == M2:
    print('0')
else:
    print('1')
Buggy code:
m,n=input().split()
ma,na=input().split()
if m==ma:
  print("1")
else:
  print("0")

Fixed code:
m,n=input().split()
ma,na=input().split()
if m==ma:
  print("0")
else:
  print("1")
Buggy code:
d1,d2,m1,m2=map(int,input().split())

if d2==1:
  print(1)
else:
  print(0)

Fixed code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())
if (m1 != m2):
    print(1)
else:
    print(0)
Buggy code:
m,d = map(int,input().split())
m2,d2 = ap(int,input().split())
if(m!=m2):
  print(1)
else:
  print(0)

Fixed code:
m,d = map(int,input().split())
m2,d2 = map(int,input().split())
if(m!=m2):
  print(1)
else:
  print(0)
Buggy code:
M1,D1=map(int,input().split())
M2,D2=map(int,input().split())

if D2=1:
    print(1)
else:
    print(0)


Fixed code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())
if D2 == 1:
  print(1)
else:
  print(0)
Buggy code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if M1 != M2:
  print(0)
else:
  print(1)

Fixed code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())
 
if M1 != M2:
  print(1)
else:
  print(0)
Buggy code:
day1 = map(int, input().split())
day2 = map(int, input().split())

if day2[1] == 1:
    print("1")
else:
    print("0")

Fixed code:
day1 = list(map(int, input().split()))
day2 = list(map(int, input().split()))

if day2[1] == 1:
    print("1")
else:
    print("0")
Buggy code:
import sys
m,d = int(input().split())
if m in ('1','3','5','7','8','10','12'):
  if d == '31':
    print('1')
elif m == '2':
  if d == '28':
    print('1')
else:
  print('0')


Fixed code:
import sys
m,d = input().split()
if m in ('1','3','5','7','8','10','12'):
  if d == '31':
    print('1')
  else:
    print('0')
elif m == '2':
  if d == '28':
    print('1')
  else:
    print('0')
else:
  if d == '30':
    print('1')
  else:
    print('0')
Buggy code:
def mainFunc():
    m1, d1 = list(map(int, list(input().split(" "))))
    m2, d2 = list(map(int, list(input().split(" "))))

    ans = '1' if m1 == m2 else '0'
    print(ans)
mainFunc()

Fixed code:
def mainFunc():
    m1, d1 = list(map(int, list(input().split(" "))))
    m2, d2 = list(map(int, list(input().split(" "))))

    ans = '1' if m1 != m2 else '0'
    print(ans)
mainFunc()
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if m1, d1 = 1,31:
  print('1')
elif m1, d1 = 2, 28:
  print('1')
elif m1, d1 = 3, 31:
  print('1')
elif m1, d1 = 4, 30:
  print('1')
elif m1, d1 = 5, 31:
  print('1')
elif m1, d1 = 6, 30:
  print('1')
elif m1, d1 = 7, 31:
  print('1')
elif m1, d1 = 8, 31:
  print('1')
elif m1, d1 = 9, 30:
  print('1')
elif m1, d1 = 10, 31:
  print('1')
elif m1, d1 = 11, 30:
  print('1')
else:
  print('0')

Fixed code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if m1 ==1 and d1 == 31:
  print('1')
elif m1==2 and d1 == 28:
  print('1')
elif m1==3 and d1 == 31:
  print('1')
elif m1==4 and d1 == 30:
  print('1')
elif m1==5 and d1 == 31:
  print('1')
elif m1==6 and d1 == 30:
  print('1')
elif m1==7 and d1 == 31:
  print('1')
elif m1==8 and d1 == 31:
  print('1')
elif m1==9 and d1 == 30:
  print('1')
elif m1==10 and d1 == 31:
  print('1')
elif m1==11 and d1 == 30:
  print('1')
else:
  print('0')
Buggy code:
import sys
input = sys.stdin.readline
a, b = (int(i) for i in input().split()) 
c, d= (int(i) for i in input().split()) 
#a = [int(i) for i in input().split()] 
#e = [[int(i) for i in input().split()] for i in range(n)] 

if a != b:
    print(1)
else:
    print(0)


Fixed code:
import sys
input = sys.stdin.readline
a, b = (int(i) for i in input().split()) 
c, d= (int(i) for i in input().split()) 
#a = [int(i) for i in input().split()] 
#e = [[int(i) for i in input().split()] for i in range(n)] 
#print(a,b,c,d)
if a != c:
    print(1)
else:
    print(0)
Buggy code:
x=input().split()
y=input().split()
if(x[0]!=y[0]):
    print("0")
else:
    print("1")

Fixed code:
x=input().split()
y=input().split()
if(x[0]!=y[0]):
    print("1")
else:
    print("0")
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if m1 != m2:
  print(0)
else:
  print(1)

Fixed code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if m1 == m2:
  print('0')
else:
  print('1')
Buggy code:
import numpy as np
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
x = [30] * 13
x[1] = x[3] = x[5] = x[7] = x[8] = x[10] = x[12] = 31
x[2] = 28
x[0] = 0
x = np.add.accumulate(x)
print('1' if x[m1 - 1] + d1 + 1 == x[m2 - 1] + d2 else '0')


Fixed code:
import numpy as np
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
x = [30] * 13
x[1] = x[3] = x[5] = x[7] = x[8] = x[10] = x[12] = 31
x[2] = 28
x[0] = 0
print('1' if x[m1] == d1 else '0')
Buggy code:
m1,d1 = map(int,input().split)
m2,d2 = map(int,input().split)
if d2 == 1:
	print(1)
else:
	print(0)

Fixed code:
m1,d1 = list(map(int,input().split()))
m2,d2 = list(map(int,input().split()))

if not m1 == m2:
    print(1)
else:
    print(0)
Buggy code:
m1,d1=map(int,input().split())
m2,d2=map(int,input().split())
if m1 != m2 :print(0)
else:print(1)

Fixed code:
m1,d1=map(int,input().split())
m2,d2=map(int,input().split())

if m1!=m2:
    print('1')
else:
    print('0')
Buggy code:
m1,d1 = map(int,input().aplit())
m2,d2= map(int,input().split())
if m1!=m2:print(1)
else: print(0)

Fixed code:
m1, d1 = map(int,input().split())
m2, d2 = map(int,input().split())
if(m1 != m2):
    print(1)
else:
    print(0)
Buggy code:
#code
a,b=map(int,input().split())
c,d=map(int,input().spit())
if a==c:
    print(0)
else:
    print(1)

Fixed code:
#code
a,b=map(int,input().split())
c,d=map(int,input().split())
if a==c:
    print(0)
else:
    print(1)
Buggy code:
m1, d1 = map(int, input().split)
m2, d2 = map(int, input().split)

if(m1 == m2):
    print('0')
    exit()
print('1')


Fixed code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if(m1 == m2):
    print('0')
    exit()
print('1')
Buggy code:
D1=[int(i) for i in input().split(" ")]

D2=[int(i) for i in input().split(" ")]

dts={

  "28":[2],

  "30":[4,6,9,11],

  "31":[1,3,5,7,8,10,12]

}

print(int(D1[0] in dts.get(str(D1[1]),[]))

Fixed code:
try:

  D1=[int(i) for i in input().split(" ")]

  D2=[int(i) for i in input().split(" ")]

  dts={

    "28":[2],

    "30":[4,6,9,11],

    "31":[1,3,5,7,8,10,12]

  }

  print(int(D1[0] in dts.get(str(D1[1]),[])))

except:

  print(0)
Buggy code:
m1, d1 = map(int,input().split())
m2, d2 = map(int,input().split())
if m1 != m2 and m2 == 1:
  print(1)
else:
  print(0)

Fixed code:
m1,d1=map(int, input().split()) 
m2,d2=map(int, input().split()) 

if (m1!=m2):
    print(1)
else:
    print(0)
Buggy code:
a,b=map(int, input().split())
c,d=map(int, input().split())

if a != b:
  print(1)
else:
  print(0)

Fixed code:
a,b=map(int, input().split())
c,d=map(int, input().split())

if a != c:
  print(1)
else:
  print(0)
Buggy code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())
if m1 != m2:print(1)
else:print(1)

Fixed code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())
if m1 != m2:print(1)
else:print(0)
Buggy code:
m,d=map(int,input()split())
s,t=map(int,input()split())
if t==1:
    print(1)
else:
    print(0)


Fixed code:
m,d=map(int,input().split())
s,t=map(int,input().split())
if t==1:
    print(1)
else:
    print(0)
Buggy code:
M1,D1=map(int,input.split())
M2,D2=map(int,input.split())

if d2==1:
  print 1
else:
  print 0

Fixed code:
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if D2 == 1:
    print(1)
else:
    print(0)
Buggy code:
def main():
    m1, d1 = map(int, input().split())
    m2, d2 = map(int, input().split())

    if m1 == m2:
        print(1)
    else:
        print(0)

if __name__ == '__main__':
    main()

Fixed code:
def main():
    m1, d1 = map(int, input().split())
    m2, d2 = map(int, input().split())

    if m1 != m2:
        print('1')
    else:
        print('0')

if __name__ == '__main__':
    main()
Buggy code:
a = input().split
b = input().split

if a[0] = b[0]:
  print("0")
else:
  print("1")

Fixed code:
a = []
b = []
a = input().split()
b = input().split()

if a[0] == b[0]:
  print("0")
else:
  print("1")
Buggy code:
def main():
  M = []
  D = []
  for i in range(2):
    m, d = [int(i) for i in input().split()]
    M.append(m)
    D.append(d)

  if (M[0] != M[1]):
    print(0)
  else:
    print(1)

if __name__ == "__main__":
  main()

Fixed code:
def main():
  M = []
  D = []
  for i in range(2):
    m, d = [int(i) for i in input().split()]
    M.append(m)
    D.append(d)

  if (M[0] != M[1]):
    print(1)
  else:
    print(0)

main()
Buggy code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())

if m1 != m2:
  if d1 == 30:
    print(1)
  else:
    print(0)

Fixed code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())
print(1 if m1 != m2 else 0)
Buggy code:
md1=map(int,input().split())
md2=map(int,input().split())

print(1 if md1[0]!=md2[0] else 0)

Fixed code:
md1=list(map(int,input().split()))
md2=list(map(int,input().split()))

print(1 if md1[0]!=md2[0] else 0)
Buggy code:
a, b=map(int, input().split())
c, d=map(int, input().split())
0 if a==c else 1


Fixed code:
a, b=map(int, input().split())
c, d=map(int, input().split())
print(0 if a==c else 1)
Buggy code:
a, b=map(int, input().split())
c, d=map(int, input().split())
print(1 if a==c else 0)


Fixed code:
a,b = map(int,input().split())
c,d = map(int,input().split())
if a == c:
  print(0)
else:
  print(1)
Buggy code:
m1,d1=map(int,input().split())
m2,d2=map(int,input().split())
if d2 = 1:
    print(1)
else:
    print(0)

Fixed code:
m1,d1=map(int,input().split())
m2,d2=map(int,input().split())

if m1 == m2:
    print(0)
else:
    print(1)
Buggy code:
# A - November 30
def main():
    M1, _, M2, _ = map(int, open(0).read().split())
    print(M1 != M2)


if __name__ == "__main__":
    main()


Fixed code:
# A - November 30
def main():
    M1, _, M2, _ = map(int, open(0).read().split())
    print(int(M1 != M2))


if __name__ == "__main__":
    main()
Buggy code:
A,B=map(int,input().split())
C,D=map(int,input().split())

if(A==B):
    print(0)
else:
    print(1)

Fixed code:
A,B=map(int,input().split())
C,D=map(int,input().split())

if(A==C):
    print(0)
else:
    print(1)
Buggy code:
a, b = map(int, input().split())
c, d = map(int, input().split())
if(a != b):
  print(1)
else:
  print(0)

Fixed code:
a,b=map(int, input().split())

c,d=map(int, input().split())

if a==c:
    print(0)
else:
    print(1)
Buggy code:
for i in range(2):
	n.append([int(x) for x in input().split()])
print(1 if n[0][0]!=n[1][0] else 0)

Fixed code:
n=[]
for i in range(2):
	n.append([int(x) for x in input().split()])
print(1 if n[0][0]!=n[1][0] else 0)
Buggy code:
m,d=map(int, input().split())
m1,d1 = map(int, input().split())
if m > m1:
  print(1)
else:
  print(0)

Fixed code:
m,d=map(int, input().split())
m1,d1 = map(int, input().split())
if d > d1:
  print(1)
else:
  print(0)
Buggy code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())

if mi == m2:
    print(0)
else:
    print(1)

Fixed code:
m1,d1 = map(int,input().split())
m2,d2 = map(int,input().split())

if m1 == m2:
    print(0)
else:
    print(1)
Buggy code:
d1 = list(map(int ,input().split())
d2 = list(map(int ,input().split())
if d2[0] != d1[0]:
          print(1)
else:
          print(0)
       
        

Fixed code:
d1 = list(map(int ,input().split()))
d2 = list(map(int ,input().split()))
if d2[0] != d1[0]:
          print(1)
else:
          print(0)
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
print(1 if m1!=d1 else 0)

Fixed code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
print(1 if m1!=m2 else 0)
Buggy code:
a,b = map(int,input().split())
c,d = map(int,input().split())

if a == b:
    print(1)
else:
    print(0)

Fixed code:
a, c = map(int,input().split())
b, d = map(int,input().split())

if a == b:
    print(0)
else:
    print(1)
Buggy code:
def LI:
	return [int(s) for s in input().split()]
  

D1 = LI()
D2 = LI()

if print(0) if D2[0] != D1[0] else print(1)

Fixed code:
def LI():
	return [int(s) for s in input().split()]

D1 = LI()
D2 = LI()
 
print(1) if D2[1] == 1 else print(0)
Buggy code:
M_1, D_1 = map(int,input().split())
M_2, D_2 = map(int,input().split())

if = M_1 =! M_2:
  print('1')
else:
  print('0')

Fixed code:
M_1, D_1 = map(int,input().split())
M_2, D_2 = map(int,input().split())

if M_1 != M_2:
  print('1')
else:
  print('0')
Buggy code:
M1, D1 = list(map(int, input().split()))
M2, D2 = list(map(int, input().split()))

if (D1 > D2):
    print(0)
else:
    print(1)

Fixed code:
M1, D1 = list(map(int, input().split()))
M2, D2 = list(map(int, input().split()))

if (D1 > D2):
    print(1)
else:
    print(0)
Buggy code:
a, b = map(int,input().split())
c, d = map(int,input().split())
if d == "1":
  print("1")
else:
  print("0")

Fixed code:
inf = float("inf")

a, b = map(int, input().split())
c, d = map(int, input().split())
if d == 1:
    print(1)
else:
    print(0)
Buggy code:
m1, d1 = input().strip().split(' ')
m2, d2 = input().strip().split(' ')

if m1 in (1, 3, 5, 7, 8, 10, 12) and d1 == 31:
    print('1')
elif m2 == 2 and d1 == 28:
    print('1')
elif m1 in (4,6,9,11) and d1 == 30:
    print('1')
else:
    print('0')

Fixed code:
m1, d1 = map(int, input().strip().split(' '))
m2, d2 = map(int, input().strip().split(' '))
 
if m1 in (1, 3, 5, 7, 8, 10, 12) and d1 == 31:
    print('1')
elif m1 == 2 and d1 == 28:
    print('1')
elif m1 in (4,6,9,11) and d1 == 30:
    print('1')
else:
    print('0')
Buggy code:
a,b=map(int,input().split())
c,d=map(int,input().split())
	
if a==c:
	print("1")
else:
	print("0")

Fixed code:
a,b=map(int,input().split())
c,d=map(int,input().split())

if a!=c:
	print("1")
else:
	print("0")
Buggy code:
m1,d1 = input().split()
m2,d2 = input().split()
if d2 == 1:
  print(1)
else:
  print(0)

Fixed code:
m1,d1=input().split()
m2,d2=input().split()

if d2=="1":
  print(1)
else:
  print(0)
Buggy code:
m1, d1=map(int, input().split())
m2,d2=map(int, input().split())

if m1 != m2:
    print(1)
else:
    print(1)


Fixed code:
m1, d1=map(int, input().split())
m2,d2=map(int, input().split())

if m1 != m2:
    print(1)
else:
    print(0)
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if m1 == 2:
  if d1 >= 28:
    print("1")
elif m1 == 1 or m1 == 3 or m1 == 5 or m1 == 7 or m1 == 8 or m1 == 10 or m1 == 12:
  if d1 == 31:
    print("1")
elif m1 == 4 and m1 == 6 and m1 == 9 and m1 == 11:
  if d1 == 30:
    print("1")
else:
  print("0")

Fixed code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())

if m1 == 2:
  if d1 == 28:
    print("1")
  else:
    print("0")
elif m1 == 1 or m1 == 3 or m1 == 5 or m1 == 7 or m1 == 8 or m1 == 10 or m1 == 12:
  if d1 == 31:
    print("1")
  else:
    print("0")
elif m1 == 4 or m1 == 6 or m1 == 9 or m1 == 11:
  if d1 == 30:
    print("1")
  else:
    print("0")
Buggy code:
M_1, D_1 = map(int, input().split(" "))
M_2, D_2 = map(int, input().split(" "))

print(0 if M_1 == M_2 else 0)

Fixed code:
M_1, D_1 = map(int, input().split(" "))
M_2, D_2 = map(int, input().split(" "))

print(0 if M_1 == M_2 else 1)
Buggy code:
m, d = map(int, raw_input().split())
if m in (1,3,5,7,8,10,12) and d == 31:
  print(1)
elif m in (4,6,9,11) and d == 30:
  print(1)
elif m == 2 and d == 28:
  print(1)
else:
  print(0)


Fixed code:
m, d = map(int, input().split())

if m in (1,3,5,7,8,10,12) and d == 31:
  print(1)
elif m in (4,6,9,11) and d == 30:
  print(1)
elif m == 2 and d == 28:
  print(1)
else:
  print(0)
Buggy code:
s = input().split()
t = input().split()
if s[0] != s[1]:
  print("1")
else:
  print("0")

Fixed code:
s = input().split()
t = input().split()
if s[0] != t[0]:
  print("1")
else:
  print("0")
Buggy code:
#A
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if M1 == M2:
    print(1)
else:
    print(0)

Fixed code:
#A
M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())

if M1 == M2:
    print(0)
else:
    print(1)
Buggy code:
a, b = map(int, input().split())
c, d = map(int, input().split())
print(a!=b)

Fixed code:
a, b = map(int, input().split())
c, d = map(int, input().split())
print(int(a!=c))
Buggy code:
a1,d1= map(int,input().split())
a2,d2= map(int,input().split())
if a1==a2:
    print(1)
else:
    print(0)

Fixed code:
a1,d1= map(int,input().split())
a2,d2= map(int,input().split())
if a1==a2:
    print(0)
else:
    print(1)
Buggy code:
a, b = map(int,input().split())
c, d = map(int,input().split())
if a == b:
  print(0)
else:
  print(1)

Fixed code:
a,b = map(int, input().split())
c,d = map(int, input().split())
if a != c:
    print(1)
else:
    print("0")
Buggy code:
a,b,c,d=map(int,open(0).read().split())
print(1 if a==c else 0)

Fixed code:
a,b,c,d=map(int,open(0).read().split())
print(0 if a==c else 1)
Buggy code:
l1 = list(map(int,input().split()))
l2 = list(map(int,input().split()))

if l[1] == 1:
  print('1')
else:
  print('0')

Fixed code:
l1 = list(map(int,input().split()))
l2 = list(map(int,input().split()))

if l2[1] == 1:
  print('1')
else:
  print('0')
Buggy code:
a,b = list(map(int, input().split()))
c,d = list(map(int, input().split()))

if (a != b):
  print(1)
else:
  print(0)

Fixed code:
a,b = list(map(int, input().split()))
c,d = list(map(int, input().split()))
 
if (a != c):
  print(1)
else:
  print(0)
Buggy code:
month_1, day_1 = input().split()
month_2, day_2 = input().split()

int_month_1 = int(month_1)
int_month_2 = int(month_2)

if int_month_1 == int_month_2:
  print('1')
else:
  print('0')

Fixed code:
month_1, day_1 = input().split()
month_2, day_2 = input().split()

int_month_1 = int(month_1)
int_month_2 = int(month_2)

if int_month_1 == int_month_2:
  print('0')
else:
  print('1')
Buggy code:
a,b,c,d=map(int,input().split()),map(int,input().split())
print("0" if a==c else "1")

Fixed code:
a,b=map(int,input().split())
c,d=map(int,input().split())
if a!=c:
  print("1")
else:
  print("0")
Buggy code:
MD = [map(int, input().split()) for _ in range(N)]
M, D = [list(i) for i in zip(*MD)]

if D[1] == 1:
    print(1)
else:
    print(0)


Fixed code:
MD = [map(int, input().split()) for _ in range(2)]
M, D = [list(i) for i in zip(*MD)]

if D[1] == 1:
    print(1)
else:
    print(0)
Buggy code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
if m1 != m2:
  print(0)
else:
  print(1)

Fixed code:
m1, d1 = map(int, input().split())
m2, d2 = map(int, input().split())
if m1 != m2:
  print(1)
else:
  print(0)