#include <bits/stdc++.h>
using namespace std;
int n, b;
double MAX = -1, sum = 0;
double niz[101];
void solve() {
  cin >> n;
  cin >> b;
  for (int i = 1; i <= n; ++i) {
    scanf("%lf", &niz[i]);
    if (niz[i] > MAX) MAX = niz[i];
    sum += niz[i];
  }
  double all = n * MAX - sum;
  if (all > b) {
    printf("-1\n");
    return;
  } else {
    double temp = (b + sum) / n;
    for (int i = 1; i <= n; ++i) {
      printf("%.6lf\n", temp - niz[i]);
    }
    cout << endl;
  }
}
int main() {
  solve();
  return 0;
}
