#include <bits/stdc++.h>
using namespace std;
int n, b, x = 0;
double bb[111], a[111];
int main() {
  scanf("%d%d", &n, &b);
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] > x) {
      x = a[i];
    }
  }
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    cnt = cnt + (x - a[i]) * 1.0;
    bb[i] += (x - a[i]) * 1.0;
  }
  b -= cnt;
  if (b < 0) {
    puts("-1");
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    a[i] = a[i] + double(b * 1.0 / n) * 1.0;
  }
  for (int i = 1; i < n; i++) {
    if (a[i] == a[i + 1]) continue;
    if (fabs(a[i] - a[i + 1]) < 0.000001) {
      puts("-1");
      return 0;
    }
  }
  for (int i = 1; i <= n; i++) {
    cout << fixed << setprecision(7) << bb[i] + double(b * 1.0 / n) * 1.0
         << endl;
  }
  return 0;
}
