#include int main() { int n = 0; int x[100000]; int s = 0; long double a = 0.0; long double d = 0.0; int i = 0; scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%d", &x[i]); s = s + x[i]; } a = s / n; //誤差? for(i = 0; i < n; i++) { d = 50.0 - ((a - x[i]) / 2.0); printf("%.0Lf\n", d); } return 0; }