I don't understand the last condition since I literally put above or under 0 since its not a negative or positive.
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if(a<0 && b<0 && c<0){
System.out.println("0");
}
else if(a>0 && b<0 && c<0){
System.out.println("1");
}
else if(a<0 && b>0 && c<0){
System.out.println("1");
}
else if(a<0 && b<0 && c>0){
System.out.println("1");
}
else if(a>0 && b>0 && c<0){
System.out.println("2");
}
else if(a>0 && b<0 && c>0){
System.out.println("2");
}
else if(a<0 && b>0 && c>0){
System.out.println("2");
}
else if(a>0 && b>0 && c>0){
System.out.println("3");
}
}
}