#include<stdio.h>
int my_fn(int a){
if(a>0)return 1;
if(a<0)return 0;
}
int main(){
int a[10]={0};
int i=0;
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}
int sum1=0,sum2=0,sum3=0;
for(i=0;i<10;i++){
sum3=sum3+a[i];
if(my_fn(a[i])==1)sum1=sum1+a[i];
if(my_fn(a[i])==0)sum2=sum2+a[i];
}
printf("zhengshu=%d,fushu=%d,all=%d",sum3,sum2,sum1);
return 0;
}
//φ(゜▽゜*)♪