#include <bits/stdc++.h>
double cur[105], sum;
int main() {
  int n, i;
  double now;
  while (~scanf("%d%lf", &n, &now)) {
    sum = now;
    for (i = 0; i < n; i++) {
      scanf("%lf", &cur[i]);
      sum += cur[i];
    }
    sum /= n;
    for (i = 0; i < n; i++) {
      if (cur[i] > sum) {
        printf("-1\n");
        break;
      }
      cur[i] = sum - cur[i];
    }
    if (i == n) {
      for (i = 0; i < n; i++) printf("%lf\n", cur[i]);
    }
  }
  return 0;
}
