#include <bits/stdc++.h>
using namespace std;
const int N = 107;
int a[N];
int main() {
  int n, b, mx = 0, sm = 0;
  cin >> n >> b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sm += a[i];
    mx = max(a[i], mx);
  }
  long double perOne = (sm + b) * 1.0 / n;
  if (mx * 1.0 > perOne) {
    cout << -1 << endl;
    return 0;
  }
  for (int i = 0; i < n; i++)
    cout << fixed << (perOne * 1.0 - a[i] * 1.0) << endl;
}
