#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; double a[n],h=0; for(int i=0;i<n;i++){ cin>>a[i]; h+=a[i]; } cout<<h<<" "; cout<<fixed<<setprecision(5)<<(double)(h/n); return 0; }