package zh.codegym.task.task04.task0429;
/*
正数和负数
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
int z = sc.nextInt();
int a = compare1(x,y,z);
int b = compare(x,y,z);
System.out.println("负数的个数:"+a);
System.out.println("正数的个数:"+b);
}
public static int compare (int x,int y,int z){
int positive = 0;
if(x>0){
positive++;
}
if(y>0){
positive++;
}
if(z>0){
positive++;
}
return positive;
}
public static int compare1 (int x,int y,int z){
int negative = 0;
if(x<0){
negative++;
}
if(y<0){
negative++;
}
if(z<0){
negative++;
}
return negative;
}
}