#include <bits/stdc++.h>
using namespace std;
int n, b;
int A[110];
int main() {
  cin >> n >> b;
  int sum(b);
  for (int i = 0; i < n; i++) {
    cin >> A[i];
    sum += A[i];
  }
  bool flag = true;
  double a = double(sum) / n;
  int i;
  for (i = 0; i < n; i++) {
    if (A[i] > a) break;
  }
  if (i == n) {
    for (int i = 0; i < n; i++) {
      cout << fixed << setprecision(9) << a - A[i] << endl;
    }
  } else
    cout << -1;
  return 0;
}
