#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  cin >> n >> b;
  int a[n + 10];
  double all = b;
  int s = 0;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    all += a[i];
    s = max(s, a[i]);
  }
  if (all / n < s)
    cout << -1;
  else {
    for (int i = 1; i <= n; ++i)
      cout << fixed << setprecision(6) << (all / n) - a[i] << '\n';
    return 0;
  }
}
