#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  cin >> n >> b;
  int a[n];
  double x, sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  int p = *max_element(a, a + n);
  x = (sum + b) / n;
  if (x < p) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    printf("%0.6f", x - a[i]);
    cout << endl;
  }
  return 0;
}
