public class Solution { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); int x = 0; int y = 0; for (int i = 0; i < 3; i++) { if (scanner.nextInt() >0) { x++;//напишите тут ваш код }else if (scanner.nextInt()<0){ y++; } } System.out.println("количество отрицательных чисел:" + " " + y); System.out.println("количество положительных чисел:" + " " + x); } }