#include <bits/stdc++.h>
using namespace std;
int const MAXN = 110;
int v[MAXN];
int main() {
  int n, b;
  scanf("%d %d", &n, &b);
  int mx = 0, t = 0;
  for (int i = 0; i != n; ++i) {
    scanf("%d", &v[i]);
    mx = max(mx, v[i]);
    t += v[i];
  }
  if ((t + b) < n * mx)
    puts("-1");
  else {
    double k = double(t + b) / n;
    char buff[100];
    for (int i = 0; i != n; ++i) {
      sprintf(buff, "%.6f\n", k - v[i]);
      replace(buff, buff + 100, ',', '.');
      puts(buff);
    }
  }
  return 0;
}
