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