please help i'm getting all the correct results but it won't pass testing
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 buf = new BufferedReader(new InputStreamReader(System.in));
int[] arr= new int[3];
int countPos=0;
int countNeg=0;
for (int i=0;i<3;i++){
arr[i]=Integer.parseInt(buf.readLine());
if (arr[i]>0){
countPos++;
}
else if (arr[i]<0){
countNeg++;
}
else{
}
}
System.out.println("Nummber of negative numbers: " + countNeg);
System.out.println("Nummber of positive numbers: "+ countPos);
}
}