#include <bits/stdc++.h>
using namespace std;
int n;
double b, a[200], sum;
int main() {
  cin >> n >> b;
  sum += b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  for (int i = 0; i < n; i++) {
    if (a[i] * n > sum) {
      cout << "-1" << endl;
      return 0;
    }
    a[i] = sum / n - a[i];
  }
  cout.precision(7);
  for (int i = 0; i < n; i++) cout << fixed << a[i] << endl;
  return 0;
}
