#include <bits/stdc++.h>
using namespace std;
double a[111];
double ans[111];
int main() {
  int n, b;
  cin >> n >> b;
  double sum = 0;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    sum += a[i];
  }
  sum += b;
  sum /= n;
  int flag = 0;
  for (int i = 0; i < n; ++i) {
    ans[i] = sum - a[i];
    if (ans[i] < 0) flag = 1;
  }
  if (flag)
    cout << -1 << endl;
  else {
    for (int i = 0; i < n; ++i) printf("%.6f\n", ans[i]);
  }
  return 0;
}
