#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  ;
  cin.tie(NULL);
  ;
  int n, b;
  double total = 0, maxx = 0;
  cin >> n >> b;
  double ar[n];
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
    total += ar[i];
    maxx = max(maxx, ar[i]);
  }
  if (b + total < maxx * n) {
    cout << -1 << endl;
  } else {
    double e = (b + total) / n;
    for (int i = 0; i < n; i++) {
      cout << fixed << setprecision(6) << e - ar[i] << endl;
    }
  }
}
