#include <bits/stdc++.h>
using namespace std;
int main() {
  float n, b, a[100], mx = 0, ne = 0;
  cin >> n >> b;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    mx = max(mx, a[i]);
  }
  for (int i = 1; i <= n; i++) {
    ne += mx - a[i];
  }
  if (ne > b) {
    cout << -1;
  } else {
    cout << fixed << setprecision(6);
    for (int i = 1; i <= n; i++) {
      cout << (b - ne) / n + mx - a[i] << endl;
    }
  }
}
