#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x[110], s;
  while (cin >> n >> s) {
    for (int i = 0; i < n; i++) cin >> x[i], s += x[i];
    double t = (double)((double)s / (double)n);
    bool sw = true;
    for (int i = 0; i < n && sw; i++)
      if (x[i] > t) sw = false;
    if (sw) {
      for (int i = 0; i < n; i++)
        printf("%.10lf", (double)((double)t - (double)x[i])), cout << endl;
    } else
      cout << -1 << endl;
  }
  return 0;
}
