#pragma region macro #include using namespace std; using ll = long long; using vi = vector; using vl = vector; using vvi = vector; using vvl = vector; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define FOR(i, a, b) for (int i = (a), i##_len = (b); i < i##_len; i++) #define ALL(x) (x).begin(), (x).end() // sortなどの引数を省略したい #define UNUSED_VARIABLE(x) ((void)(&x)) // 使わない引数の警告を消す #ifdef _DEBUG #define PRE_COMMAND \ std::cin.rdbuf(in.rdbuf()); \ std::cout.rdbuf(out.rdbuf()); \ std::cout << fixed << setprecision(15); #else #define PRE_COMMAND \ cout << fixed << setprecision(15); \ ios::sync_with_stdio(false); \ cin.tie(0); #endif const double EPS = 1e-10, PI = acos(-1.0); // 出力用関数 void PRINT() {} template void PRINT(Head&& head) { std::cout << head << '\n'; } template void PRINT(Head&& head, Tail&&... tail) { std::cout << head << ' '; PRINT(std::forward(tail)...); } template auto MAX(T& seq) { return *max_element(ALL(seq)); } template auto MIN(T& seq) { return *min_element(ALL(seq)); } template auto SUM(T& seq) { T temp{0}; auto& temp2 = temp[0]; return accumulate(ALL(seq), temp2); } template void REV(vector& seq) { reverse(ALL(seq)); } template void SORT(T& seq) { sort(ALL(seq)); } template void SORT(T& seq, S& sort_order) { sort(ALL(seq), sort_order); } template void SORTR(vector& seq) { sort(ALL(seq), greater()); } template int pow(int n_0, T k, int mod) { if (n_0 >= mod) n_0 %= mod; if (n_0 < 0) n_0 += mod; unsigned long long n = (unsigned long long)n_0, now = 1; while (k) { if (k & 1) now = (now * n) % mod; n = (n * n) % mod; k >>= 1; } return (int)now; } template istream& operator>>(istream& is, vector& vec) { for (T& x : vec) is >> x; return is; } template ostream& operator<<(ostream& os, const vector& v) { if (!v.size()) return os; typename vector::const_iterator ii = v.begin(); os << *ii++; for (; ii != v.end(); ++ii) os << " " << *ii; return os; } void yn(bool flag) { if (flag) { PRINT("YES"); } else { PRINT("NO"); } } #pragma endregion macro int main() { PRE_COMMAND int n; cin >> n; vi v(n); cin >> v; int s = SUM(v); REP(i, n) { cout << (50 * n * 2 - s + v[i] * n) / (2 * n) << endl; } }