#include <bits/stdc++.h>
using namespace std;
long long a[100],i,n,t1,t,dem;
int main()
{
cin>>n;
for (i=1; i<=n; i++) cin>>a[i];
cout<<"Cac so duong la: ";
dem=0;
t=0;
for (i=1; i<=n; i++)
if (a[i]>0)
{
cout<<a[i]<<" ";
t+=a[i];
dem++;
}
cout<<endl;
t1=0;
for (i=1; i<=n; i++) t1+=a[i];
cout<<"trung binh day so la: "<<fixed<<setprecision(2)<<(t1*1.0)/(n*1.0)<<endl;
cout<<"Trung binh cac so duong la: "<<fixed<<setprecision(2)<<(t*1.0)/(dem*1.0);
return 0;
}