#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i;
  double ans, sum = 0.0, d, r, diff, b, j;
  cin >> n >> b;
  double arr[n], arr1[n], a[n];
  for (i = 0; i < n; i++) cin >> arr[i];
  for (i = 0; i < n; i++) arr1[i] = arr[i];
  sort(arr1, arr1 + n);
  for (i = 0; i < n; i++) {
    d = arr1[n - 1] - arr[i];
    a[i] = d;
    sum += d;
  }
  diff = b - sum;
  if (diff < 0) {
    cout << -1 << endl;
    return 0;
  }
  r = diff / n;
  for (i = 0; i < n; i++) a[i] += r;
  for (i = 0; i < n; i++) cout << fixed << setprecision(6) << a[i] << endl;
}
