#include <bits/stdc++.h>
double a[1000];
int main() {
  int n, i;
  double b, total = 0;
  scanf("%d %lf", &n, &b);
  for (i = 0; i < n; i++) {
    scanf("%lf", &a[i]);
    total += a[i];
  }
  total += b;
  total /= n;
  for (i = 0; i < n; i++)
    if (a[i] > total) break;
  if (i != n) {
    puts("-1");
  } else {
    for (i = 0; i < n; i++) printf("%lf\n", total - a[i]);
  }
  return 0;
}
