#include <bits/stdc++.h>
using namespace std;
const int mxN = 2e5 + 1;
vector<int> adj[mxN];
double a[mxN], b[mxN];
int c[mxN], h[mxN];
map<int, int> mpx, mpy;
string st1;
int res, ans, cnt, s;
int main() {
  int n;
  double m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    m += a[i];
  }
  m /= n;
  for (int i = 1; i <= n; i++) {
    if (a[i] > m) {
      cout << "-1";
      return 0;
    }
  }
  for (int i = 1; i <= n; i++)
    cout << fixed << setprecision(9) << m - a[i] << endl;
  return 0;
}
