#include <bits/stdc++.h>
int n, b;
double a[105], m, x;
int main() {
  scanf("%d%d", &n, &b);
  x = b;
  for (int i = 1; i <= n; ++i) {
    scanf("%lf", a + i);
    m = std::max(m, a[i]);
    x += a[i];
  }
  x /= n;
  if (x < m)
    printf("-1\n");
  else {
    for (int i = 1; i <= n; ++i) printf("%lf\n", x - a[i]);
  }
  return 0;
}
