#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, b;
  cin >> n >> b;
  double sum = 0;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  double n1 = (sum + b) / n;
  int n2 = *max_element(a, a + n);
  if (n2 > n1) {
    cout << "-1" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(6) << n1 - a[i] << endl;
  }
}
