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