#include <bits/stdc++.h>
using namespace std;
double a[200];
int main() {
  int n;
  double b;
  cin >> n >> b;
  double s = b;
  for (int(i) = (0); (i) < (n); ++(i)) {
    cin >> a[i];
    s += a[i];
  }
  for (int(i) = (0); (i) < (n); ++(i))
    if (a[i] * n > int(s)) {
      cout << -1 << endl;
      return 0;
    }
  for (int(i) = (0); (i) < (n); ++(i)) printf("%.7f\n", s / (n + 0.0) - a[i]);
  return 0;
}
