#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  cin >> n >> b;
  int a[1000];
  double sum = b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  sum /= n;
  double req[1000], sumreq = 0;
  for (int i = 0; i < n; i++) {
    req[i] = sum - a[i];
    if (req[i] < 0) {
      cout << -1 << endl;
      return 0;
    }
    sumreq += req[i];
  }
  cout.precision(6);
  int t = sumreq * 1000000;
  sumreq = (double)t / 1000000;
  if (sumreq > b)
    cout << -1 << endl;
  else
    for (int i = 0; i < n; i++) cout << fixed << req[i] << endl;
}
