#include <iostream> #include <iomanip> using namespace std; int n, tmp; double ans; int main() { cin >> n; for (int i = 1; i <= n; ++i) { cin >> tmp; ans += tmp; } cout << ans << " "; ans /= n; cout << fixed << setprecision(5) << ans; return 0; }