#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, b;
  cin >> n >> b;
  long long a[n];
  long long sum = b * n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    a[i] *= n;
    sum += a[i];
  }
  sum /= n;
  cout.precision(6);
  cout.setf(ios_base::fixed);
  for (int i = 0; i < n; ++i)
    if (a[i] > sum) {
      cout << -1 << endl;
      return 0;
    }
  for (int i = 0; i < n; ++i) cout << (double)(sum - a[i]) / (double)n << endl;
}
