This for else if stuff makes my brain hurt, have no idea how to make this math stuff chooch, help me brother
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
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());
int arr[] = {a,b,c};
int count = 0;
for(int i = 0; i < 3; i++){
if(arr[i]>0) {
count += 1;
}
else if (arr[i]<0){
count+=0;
}
}
System.out.println("Number of negative numbers: " + (3-count));
System.out.println("Number of positive numbers: " + count);
}
}