#include <bits/stdc++.h>
using namespace std;
long long a[100009], c[100009];
int main() {
  long long n, b, i, j, sum = 0;
  double t;
  cin >> n >> b;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    c[i] = a[i];
    sum += a[i];
  }
  sort(a, a + n);
  if (a[n - 1] - a[0] > b) {
    cout << -1 << endl;
    return 0;
  } else {
    t = (float)(b + sum) / n;
  }
  for (i = 0; i < n; i++) {
    if (c[i] > t) {
      cout << -1 << endl;
      return 0;
    }
  }
  for (i = 0; i < n; i++) {
    printf("%.6f\n", t - (float)c[i]);
  }
}
