#include #include #include using namespace std; int main(){ int N; cin >> N; vector x(N); for (int i = 0; i < N; i++){ cin >> x[i]; } int M; cin >> M; M--; double m = 0; for (int i = 0; i < N; i++){ m += x[i]; } m /= N; double v = 0; for (int i = 0; i < N; i++){ v += pow(x[i] - m, 2); } v /= N; double s = sqrt(v); cout << (int) (50 + (x[M] - m) / v * 10) << endl; }