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