#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int N; long long S=0; long double ans=0, a, s; cin >> N; assert(N <= 100000); vector A(N); for (int i=0; i> A[i]; S += A[i]; assert(1 <= A[i]); } assert(S <= 1e18); sort(A.begin(), A.end()); s = S; for (int i=0; i