import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] arr = new int[10];
        int p = 0; //计算正数的和
        int n = 0; //计算负数的和
        for(int i = 0; i < arr.length; i++) {
            arr[i] = scanner.nextInt();
            if(arr[i] > 0) {
                p++;
            } else if(arr[i] < 0) {
                n++;
            }
            // 注意:0既不是正数也不是负数
        }
        System.out.println("positive:" + p);
        System.out.println("negative:" + n);
    }
}