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