#include <bits/stdc++.h> using namespace std; int main(){ int k0,k1; double k2; cin>>k0; for(int k3=1;k3<=k0;k3++){ cin>>k1; k2+=k1; } cout<<k2<<' '; k2/=k0; cout<<fixed<<setprecision(5)<<k2; }