#include <stdio.h>

int main() {
    int a;
    int z=0;
    int x=0;
    while (scanf("%d", &a) != EOF) { 
        getchar();
        if(a>0)z++;
        else x++;
    }printf("positive:%d\n",z);
    printf("negative:%d\n", x);
    return 0;
}