my code is
package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
InputStreamReader input = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(input);
// int variable
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
// conditions for integer
boolean apos = a > 0;
boolean bpos = b > 0;
boolean cpos = c > 0;
boolean aneg = a < 0;
boolean bneg = b < 0;
boolean cneg = c < 0;
// one positive number
boolean checka = apos && bneg && cneg;
boolean checkb = aneg && bpos && cneg;
boolean checkc = aneg && bneg && cpos;
// two positive number
boolean checkab = apos && bpos && cneg;
boolean checkbc = aneg && bpos && cpos;
boolean checkca = apos && bneg && cpos;
// closed section
// if one number is postive
if((apos) && (bpos) && (cpos)) {
System.out.println(3);
} else if(checka) {
System.out.println(1);
} else if(checkb) {
System.out.println(1);
} else if(checkc) {
System.out.println(1);
} else if(checkab) {
System.out.println(2);
} else if(checkbc) {
System.out.println(2);
} else if(checkca) {
System.out.println(2);
} else {
System.out.println(0);
}
}
}