#include <bits/stdc++.h>
using namespace std;
long long n,i,x,t1,t2,t3,k,dem;
int main()
{
cin>>n;
t1=0;
t2=0;
t3=0;
k=5;
dem=0;
for (i=1; i<=n; i++)
{
cin>>x;
if (x==k) dem++;
t1=t1+x;
if (x%2==0) t2+=x;
else t3+=x;
}
cout<<"Tong cua day la: "<<t1<<endl;
cout<<"Tong so chan la: "<<t2<<endl;
cout<<"Tong so le la: " <<t3<<endl;
cout<<"Trung binh cong la: "<<fixed<<setprecision(2)<<(t1*1.0)/(n*1.0)<<endl;
cout<<"So so hang bang k la: "<<dem;
return 0;
}