package com.javarush.task.task04.task0429;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Положительные и отрицательные числа
*/

public class Solution {
    public static void main(String[] args) throws Exception {
        //напишите тут ваш код
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String ch1 = reader.readLine();
        int a = Integer.parseInt(ch1);
        String ch2 = reader.readLine();
        int b = Integer.parseInt(ch2);
        String ch3 = reader.readLine();
        int c = Integer.parseInt(ch3);
        int p=0, o=0;
        if (a!=0 && b!=0 && c!=0) {
        if (a>0){
            p++;
            if (b>0){
                p++;
                if (c>0) p++;
                else o++;
            }
            else if (b<0){
                o++;
                if (c>0) p++;
                else o++;
            }
        }
        else if (a<0){
            o++;
            if (b>0){
                p++;
                if (c>0) p++;
                else o++;
            }
            else if (b<0){
                o++;
                if (c>0) p++;
                else o++;
            }
        }
        }
        System.out.println("количество отрицательных чисел: "+o);
        System.out.println("количество положительных чисел: "+p);
    }
}