1045: 数值统计
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n,a,b,c,x;a=b=c=0;n=cin.nextInt();for(int i=1;i<=n;i++){
x=cin.nextInt();if(x<0) a++;if(x==0) b++;if(x>0) c++;}System.out.printf("%d %d %d",a,b,c);}
}