#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  scanf("%d%d", &n, &b);
  vector<int> a(n);
  double sum = (double)b;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum = (double)(sum + a[i]);
  }
  double d = (double)sum / n;
  vector<double> ans(n);
  bool ok = true;
  for (int i = 0; i < n; i++) {
    ans[i] = (double)d - a[i];
    ok = ok && (ans[i] >= 0);
  }
  if (!ok)
    printf("-1");
  else {
    for (int i = 0; i < n; i++) cout << fixed << ans[i] << endl;
  }
}
