#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  double b;
  cin >> n >> b;
  vector<double> a(n);
  double sum = b;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    sum += a[i];
  }
  sum /= n;
  for (int i = 0; i < n; ++i) {
    if (sum < a[i]) {
      cout << -1;
      return 0;
    }
    a[i] = sum - a[i];
  }
  for (int i = 0; i < n; ++i) cout << fixed << setprecision(6) << a[i] << endl;
  return 0;
}
