package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
int z = scanner.nextInt();
if (x>=1 && y>=1 && z>=1)
System.out.println("Number of negative numbers: 0\n Number of positive numbers: 3");
else if ((x>=1 && y<=-1 && z<=-1)||(x<=-1 && y>=1 && z<=-1)||(x<=-1 && y<=-1 && z>=1))
System.out.println("Number of negative numbers: 2\n Number of positive numbers: 1");
else if ((x>=1 && y>=1 && z<=-1)||(x>=1 && y<=-1 && z>=1)||(x<=-1 && y>=1 && z>=1))
System.out.println("Number of negative numbers: 1\n Number of positive numbers: 2");
else if (x<=-1 && y<=-1 && z<=-1)
System.out.println("Number of negative numbers: 3 \n Number of positive numbers: 0");
}
}
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int y = scanner.nextInt();
int z = scanner.nextInt();
if (x>=1 && y>=1 && z>=1)
System.out.println("Number of negative numbers: 0\n Number of positive numbers: 3");
else if ((x>=1 && y<=-1 && z<=-1)||(x<=-1 && y>=1 && z<=-1)||(x<=-1 && y<=-1 && z>=1))
System.out.println("Number of negative numbers: 2\n Number of positive numbers: 1");
else if ((x>=1 && y>=1 && z<=-1)||(x>=1 && y<=-1 && z>=1)||(x<=-1 && y>=1 && z>=1))
System.out.println("Number of negative numbers: 1\n Number of positive numbers: 2");
else if (x<=-1 && y<=-1 && z<=-1)
System.out.println("Number of negative numbers: 3 \n Number of positive numbers: 0");
else if (x == 0 && y == 0 && z == 0)
System.out.println("Number of negative numbers: 0 \n Number of positive numbers: 0");
}
}