#include <bits/stdc++.h>
using namespace std;
int num[105];
double a, b;
int main() {
  while (cin >> a >> b) {
    for (int i = 1; i <= (a); i++) cin >> num[i];
    double ans = 0, maxx = 0;
    for (int i = 1; i <= (a); i++) {
      ans += num[i];
      maxx = (maxx > num[i]) ? maxx : num[i];
    }
    if (maxx * a > ans + b)
      cout << "-1" << endl;
    else {
      double ave = (ans + b) / a;
      for (int i = 1; i <= (a); i++) {
        printf("%.6lf\n", ave - num[i]);
      }
    }
  }
  return 0;
}
