#include <bits/stdc++.h>
using namespace std;
int main() {
  float b, inc;
  int total = 0, max = -1, i, j, n;
  cin >> n >> b;
  vector<int> vec(n);
  for (i = 0; i < n; i++) {
    cin >> vec[i];
    total += vec[i];
    if (max < vec[i]) max = vec[i];
  }
  if (b < (max * n) - total) {
    cout << "-1";
    return 0;
  }
  b -= (max * n) - total;
  b = b / n;
  for (i = 0; i < n; i++) {
    printf("%0.6f\n", max - vec[i] + b);
  }
  return 0;
}
