#include <bits/stdc++.h>
using namespace std;
int N, a[111], sum = 0, b;
int main(int argc, char *argv[]) {
  scanf("%d%d", &N, &b);
  for (int i = 0; i < N; i++) scanf("%d", a + i);
  sum = b;
  for (int i = 0; i < N; i++) sum += a[i];
  bool ok = true;
  for (int i = 0; i < N; i++)
    if (sum / N < a[i]) ok = false;
  if (ok)
    for (int i = 0; i < N; i++) printf("%.9lf\n", (double)sum / N - a[i]);
  else
    printf("-1\n");
  return 0;
}
