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