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