#include <bits/stdc++.h>
using namespace std;
double a[110], n, b, maxx, sum;
int main() {
  scanf("%lf%lf", &n, &b);
  for (int i = 1; i <= n; i++) {
    scanf("%lf", &a[i]);
    maxx = max(a[i], maxx);
    sum += a[i];
  }
  if (b + sum < maxx * n) {
    printf("-1\n");
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    printf("%.6lf\n", (b + sum) / n - a[i]);
  }
  return 0;
}
