#include <bits/stdc++.h> using namespace std; int main() { double n, m, t; cin >> n; m = 0; for (int i = 1; i <= n; i++) { cin >> t; m += t; } cout << setw(5) << m << ' '; cout << setw(5) << m / n; }