#include <bits/stdc++.h>
using namespace std;
int n, b;
int a[1000];
int tota;
int main() {
  cin >> n >> b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    tota += a[i];
  }
  double avg = (b + tota + 0.0) / n;
  vector<double> vs;
  bool ok = true;
  for (int i = 0; i < n; i++) {
    if (avg < a[i]) {
      ok = false;
      break;
    }
    vs.push_back(avg - a[i]);
  }
  if (ok) {
    for (int i = 0; i < n; i++) {
      printf("%.9f\n", vs[i]);
    }
  } else
    cout << -1 << endl;
  return 0;
}
