package com.codegym.task.task04.task0429; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String v1 = reader.readLine(); String v2 = reader.readLine(); String v3 = reader.readLine(); int c1 = Integer.parseInt(v1); int c2 = Integer.parseInt(v2); int c3 = Integer.parseInt(v3); int count1 = 0; int count2 = 0; if (c1 > 0 && c2 > 0 && c3 > 0) count1+=3; if (c1 < 0 && c2 < 0 && c3 < 0) count2+=3; if (c1 > 0 && c2 > 0 && c3 <= 0 || c1 > 0 && c2 <= 0 && c3 > 0 || c1 <= 0 && c2 > 0 && c3 > 0) count1+=2; if (c1 > 0 && c2 <= 0 && c3 <= 0 || c1 <= 0 && c2 > 0 && c3 <= 0 || c1 <= 0 && c2 <= 0 && c3 > 0) count1+=1; if (c1 < 0 && c2 < 0 && c3 >= 0 || c1 < 0 && c2 >= 0 && c3 < 0 || c1 >= 0 && c2 < 0 && c3 < 0) count2+=2; if (c1 < 0 && c2 >= 0 && c3 >= 0 || c1 >= 0 && c2 < 0 && c3 >= 0 || c1 >= 0 && c2 >= 0 && c3 < 0) count2+=1; if (c1 <= 0 && c2 <= 0 && c3 <= 0) count2+=0; if (c1 >= 0 && c2 >= 0 && c3 >= 0) count1+=0; System.out.println("Number of negative numbers:" + count2); System.out.println("Number of positive numbers:" + count1); } }