#include <bits/stdc++.h>
using namespace std;
int main() {
  double arr[106];
  double n, b;
  cin >> n >> b;
  double temp;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    b += arr[i];
  }
  temp = b / n;
  for (int i = 0; i < n; i++) {
    if (temp - arr[i] < 0) {
      cout << "-1" << endl;
      return 0;
    }
  }
  for (int i = 0; i < n; i++) {
    printf("%.6lf\n", temp - arr[i]);
  }
  return 0;
}
