#include <stdio.h>
int main()
{
int a,zs=0,fs=0;
    while(~scanf("%d",&a))
    {
        getchar();
        a>0?zs++:fs++;
    }
printf("positive:%d\nnegative:%d",zs,fs);
return 0;
}