#include<bits/stdc++.h> using namespace std; int main() { double c; long long b,i,a[10000]; cin>>b; for(i=1;i<=b;i++) { cin>>a[i]; c+=a[i]*1.0; } cout<<c<<" "; if(b!=0) { cout<<fixed<<setprecision(5)<<c*1.0/b; } else cout<<0; }