#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long int n, b;
  cin >> n >> b;
  double arr[n];
  double copy[n];
  for (long long int i = 0; i < n; i++) {
    cin >> arr[i];
    copy[i] = arr[i];
  }
  sort(arr, arr + n);
  double m = arr[n - 1];
  double s = 0;
  for (long long int i = 0; i < n; i++) s += m - arr[i];
  if (s > b)
    cout << -1;
  else {
    double x = (b - s) / n;
    for (long long int i = 0; i < n; i++) {
      double ans = m - copy[i] + x;
      cout << fixed << setprecision(6) << ans << "\n";
    }
  }
  return 0;
}
