#while
num = 1
positive = 0
negative = 0
zero = 0
while num <= 10:
a = int(input())
num += 1
if a > 0:
positive += 1
elif a < 0:
negative += 1
else:
zero += 1
print(positive)
print(negative)
print(zero)
#for
num = 1
positive = 0
negative = 0
zero = 0
for i in range(10):
a = int(input('请输入十个数字:'))
num += 1
if a > 0:
positive += 1
elif a < 0:
negative += 1
else:
zero += 1
print(positive)
print(negative)
print(zero)