#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
void solveCP311() {
  ll n, b;
  cin >> n >> b;
  ll arr[n];
  ll sum = b;
  for (ll i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  ld x = (ld)sum / (ld)n;
  ld ans[n], sum2 = 0;
  bool f = 1;
  for (ll i = 0; i < n; i++) {
    if ((ld)arr[i] > x) {
      f = 0;
    } else {
      ans[i] = x - (ld)arr[i];
    }
    sum2 += ans[i] + (ld)arr[i];
  }
  if (!f) {
    cout << -1;
  } else {
    for (auto i : ans) {
      cout << fixed << setprecision(6) << i << endl;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ll t = 1;
  while (t--) {
    solveCP311();
  }
  return 0;
}
