#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n; vector a(n); ld s = 0, e = 0; re(i, n) { std::cin >> a[i]; s += a[i]; } s/=n; re(i, n){ e += (a[i]-s)*(a[i]-s); } e = sqrt(e/n); if(e<1e-8){ std::cout << 50 << '\n'; return 0; } re(i, n){ a[i] = (10.0*(a[i]-s))/e; a[i] += 50.0; } ll m;std::cin >> m; std::cout << (int)(a[m-1]+1e-8) << '\n'; return 0; }