#include using namespace std; typedef long long ll; #define REP(i,n) for(int i=0;i> N; for(int i = 1; i <= N; ++i) { cin >> rperf[i]; } double x; double child = 0; double par = 0; for(int i=1; i <= N; ++i) { child += g(rperf[i]) * pow(0.9, (double)i); par += pow(0.9, (double)i); } x = child / par; printf("%f\n", inv_g(x) - f(N)); return 0; }