Please help me in knowing where I am going wrong

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
int p = 0;
int q = 1;
int s = 2;
int i = 3;
BufferedReader r = new BufferedReader(new InputStreamReader (System.in));
String a = r.readLine();
String b = r.readLine();
String c = r.readLine();
int a1 = Integer.parseInt(a);
int b1 = Integer.parseInt(b);
int c1 = Integer.parseInt(c);
if(a1>0 && b1>0 && c1>0){
System.out.println("Number of negative numbers: "+p);
System.out.println("Number of positive numbers: "+i);
}
else if(a1<0 && b1<0 && c1<0){
System.out.println("Number of negative numbers: "+i);
System.out.println("Number of positive numbers: "+p);
}
else if((a1>0 && b1>0 && c1<0) || (a1>0 && b1<0 && c1>0) || (a1<0 && b1>0 && c1>0))
{
System.out.println("Number of negative numbers: "+q);
System.out.println("Number of positive numbers: "+s);
}
else if((a1<0 && b1<0 && c1>0) || (a1<0 && b1>0 && c1<0) || (a1>0 && b1<0 && c1<0))
{
System.out.println("Number of negative numbers: "+s);
System.out.println("Number of positive numbers: "+i);
}
}
}