n=list(map(int,input().split()))
a=[]
b=[]
for i in n:
    if i>0:
        a.append(i)
    elif i<0:
        b.append(i)
print(f"positive:{len(a)}\nnegative:{len(b)}")