N = int(input())
a = []
col = 0
for i in range(N):
    a.append(int(input()))
for i in range(len(a)):
    if a[i] == 0:
        col += 1
print(col)

34eec3d9a75105d9234a2a465438083d4286d954
<mask token>

<mask token>
for i in range(N):
    a.append(int(input()))
for i in range(len(a)):
    if a[i] == 0:
        col += 1
print(col)

N = int(input())
a = []
col = 0
for i in range(N):
    a.append(int(input()))
for i in range(len(a)):
    if a[i] == 0:
        col += 1
print(col)
