Что значит "в исходном наборе"?
package com.javarush.task.task04.task0429;
/*
Положительные и отрицательные числа
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(in.readLine());
int b = Integer.parseInt(in.readLine());
int c = Integer.parseInt(in.readLine());
int otr = 0;
int pol = 0;
if(a < 0 && b <0 && c <0){
System.out.println("количество положительных чисел: " + pol);
}else {
if (a < 0){
otr++;
}else if (a > 0){
pol++;
}else{}
if (b < 0){
otr++;
}else if (b > 0){
pol++;
}else{}
if (c < 0){
otr++;
}else if (c > 0){
pol++;
}else{}
System.out.println("количество отрицательных чисел: " + otr);
System.out.println("количество положительных чисел: " + pol);
}
}
}