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