M = int(input())
eso_mennyisegek = []
for i in range(M):
    eso_mennyisegek.append(int(input()))
nap = 0
for x in eso_mennyisegek:
    if x > 0:
        nap += 1
print(nap)

74fa511ac4088d49773463e2d3d2733b621eb897
<mask token>

<mask token>
for i in range(M):
    eso_mennyisegek.append(int(input()))
<mask token>
for x in eso_mennyisegek:
    if x > 0:
        nap += 1
print(nap)

M = int(input())
eso_mennyisegek = []
for i in range(M):
    eso_mennyisegek.append(int(input()))
nap = 0
for x in eso_mennyisegek:
    if x > 0:
        nap += 1
print(nap)
