#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  cin >> n >> b;
  double val[n];
  double sum;
  bool posible = true;
  for (int i = 0; i < n; ++i) {
    cin >> val[i];
    sum += val[i];
  }
  sum += b;
  sum /= n;
  for (int i = 0; i < n; ++i)
    if (sum - val[i] < 0) {
      posible = false;
      break;
    }
  if (posible)
    for (int i = 0; i < n; ++i) printf("%.6lf\n", sum - val[i]);
  else
    puts("-1");
}
