#include <bits/stdc++.h>
using namespace std;
int main() {
  double a[105], c[105], tot, avg, d;
  int n;
  scanf("%d%lf", &n, &d);
  for (int(i) = 0; (i) < (int)(n); (i)++) {
    scanf("%lf", a + i);
    tot += a[i];
  }
  tot += d;
  avg = tot / n;
  for (int(i) = 0; (i) < (int)(n); (i)++) {
    c[i] = avg - a[i];
    if (c[i] < 0) {
      puts("-1");
      return 0;
    }
  }
  for (int(i) = 0; (i) < (int)(n); (i)++) printf("%.6lf\n", c[i]);
  return 0;
}
