В чём причина? Объясните, пожалуйста.
package com.javarush.task.task04.task0428;
/*
Положительное число
*/
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());
boolean a1 = (a > 0 && b > 0 && c > 0);
boolean b1 = (a < 0 && b > 0 && c > 0)||(a > 0 && b < 0 && c > 0)||(a > 0 && b > 0 && c <0);
boolean c1 = (a < 0 && b < 0 && c > 0)||(a > 0 && b < 0 && c < 0)||(a < 0 && b > 0 && c < 0);
boolean d1 = (a < 0 && b < 0 && c < 0);
if (a1) {
System.out.println("3");
}
else if (b1) {
System.out.println("2");
}
else if (c1) {
System.out.println("1");
}
else if (d1){
System.out.println("0");
}
}
}