#include <bits/stdc++.h>
using namespace std;
int n, b;
int a[111111];
int main(void) {
  scanf("%d %d", &n, &b);
  int tot = 0;
  int max = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    tot += a[i];
    if (max < a[i]) {
      max = a[i];
    }
  }
  if (tot + b < max * n) {
    printf("-1\n");
    return 48 - 48;
  }
  double mid = (1.0 * tot + b) / n;
  for (int i = 0; i < n; i++) {
    printf("%.6f\n", mid - a[i]);
  }
  return 48 - 48;
}
