#include <bits/stdc++.h>
double v[210];
int main() {
  int n, b;
  while (scanf("%d%d", &n, &b) != EOF) {
    double sum = 0;
    memset(v, 0, sizeof(v));
    for (int i = 1; i <= n; i++) {
      scanf("%lf", &v[i]);
      sum += v[i];
    }
    sum += b;
    int f = 0;
    double ave = sum / n, need = 0;
    for (int i = 1; i <= n; i++) {
      if (v[i] > ave) {
        f = 1;
        break;
      }
      need += ave - v[i];
    }
    if (f || fabs(need - b) > 1e-10) {
      puts("-1");
      continue;
    }
    for (int i = 1; i <= n; i++) printf("%.6lf\n", ave - v[i]);
  }
}
