i dunno, but i got the same question as another guy, and his code is needlessly complicated
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int c = input.nextInt();
if (c > 0 && b > 0 && a > 0)
{
System.out.println(3);
}
if (c < 0 && b > 0 && a > 0)
{
System.out.println(2);
}
if (c > 0 && b < 0 && a > 0)
{
System.out.println(2);
}
if (c > 0 && b > 0 && a < 0)
{
System.out.println(2);
}
if (c < 0 && b < 0 && a > 0)
{
System.out.println(1);
}
if (c < 0 && b > 0 && a < 0)
{
System.out.println(1);
}
if (c > 0 && b < 0 && a < 0)
{
System.out.println(1);
}
if (c < 0 && b < 0 && a < 0)
{
System.out.println(0);
}
}
}