import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
a[0] = sc.nextInt();
a[1] = sc.nextInt();
a[2] = sc.nextInt();
int count = 0;
int count1=0;
for (int i = 0; i < 3; i++) {
if (a[i] > 0) {
count ++;
}
}
for (int i = 0; i < 3; i++) {
if (a[i] < 0) {
count1 ++;
}
}
System.out.println("Number of negative numbers: "+count1);
System.out.println("Number of positive numbers: "+count);
}
package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
a[0] = sc.nextInt();
a[1] = sc.nextInt();
a[2] = sc.nextInt();
int count = 0;
int count1=0;
for (int i = 0; i < 3; i++) {
if (a[i] > 0) {
count ++;
}
}
for (int i = 0; i < 3; i++) {
if (a[i] < 0) {
count1 ++;
}
}
System.out.println("Number of negative numbers: "+count1);
System.out.println("Number of positive numbers: "+count);
}