#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  double a[n], b[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = a[i];
  }
  sort(a, a + n);
  double q = a[n - 1], ans = 0, w = 0;
  for (int i = 0; i < n - 1; i++) {
    ans += q - a[i];
    w += a[i];
  }
  if (ans > k) {
    cout << -1;
    return 0;
  } else {
    w += q;
    double z = w + k;
    double y = z / n;
    for (int i = 0; i < n; i++) {
      double x = y - b[i];
      cout << fixed;
      cout << setprecision(6) << x << endl;
    }
  }
  return 0;
}
