(Пример 1) public class Solution { public static void main(String[] args) throws Exception { BufferedReader ww = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(ww.readLine()); int b = Integer.parseInt(ww.readLine()); int c = Integer.parseInt(ww.readLine()); int plus = 0; int plus1 = 0; if (a>0) plus++; if(a<0) plus1--; if(b>0) plus++; if (b<0) plus1--; if (c>0) plus++; if (c<0) plus1--; System.out.println("количество положительных чисел: "+plus); System.out.println("количество отрицательных чисел: "+plus1); } }