#include<iostream>
using namespace std;
int main()
{
int *ptr;
const int N=20;
ptr =new int [N];
int i;
for(i=0;i<N;i++)
{
cin>>ptr[i];
}
int m=0,n=0;
for(i=0;i<N;i++)
{
if(ptr[i]!=0)
{
ptr[i]>=0?m++:n++; //m为整数个数, n为负数个数
}
}
cout<<"正数个数为"<<m<<endl;
cout<<"负数个数为"<<n<<endl;
delete []ptr;
return 0;
}