#include <bits/stdc++.h>
using namespace std;
double eps = 1e-8;
int main() {
  int n;
  double b, max = 0;
  cin >> n >> b;
  vector<double> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] >= max) max = v[i];
  }
  double ans = 0;
  for (int i = 0; i < n; i++) {
    ans += max - v[i];
  }
  if (ans > (b + eps)) {
    cout << "-1";
    return 0;
  } else {
    double all = (b - ans) / n;
    for (int i = 0; i < n; i++) {
      char str[100] = {};
      sprintf(str, "%.6lf", max - v[i] + all + eps);
      for (int j = 0; j < strlen(str); j++)
        if (str[j] == ',') str[j] == '.';
      cout << str << endl;
    }
  }
  return 0;
}
