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