#include <bits/stdc++.h>
using namespace std;
int n, b, a[111];
int main() {
  cin >> n >> b;
  for (int i = 0; i < n; ++i) cin >> a[i];
  int s = 0, m = *max_element(a, a + n);
  for (int i = 0; i < n; ++i) s += m - a[i];
  if (s > b)
    cout << "-1\n";
  else
    for (int i = 0; i < n; ++i) {
      printf("%0.15lf\n", m + (double)(b - s) / n - a[i]);
    }
}
