#include <bits/stdc++.h>
using namespace std;
double m, a, mx;
int n;
int main() {
  ios_base::sync_with_stdio(NULL);
  cin >> n >> m;
  double arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    mx = max(mx, arr[i]);
    a += arr[i];
  }
  if ((a + m) / n < mx) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(6) << (a + m) / n - arr[i] << endl;
  }
}
