#include <bits/stdc++.h>
int main() {
  double b;
  double n;
  while (~scanf("%lf %lf", &n, &b)) {
    int i;
    double num[101];
    double sum = 0;
    for (i = 0; i < n; i++) {
      scanf("%lf", &num[i]);
      sum += num[i];
    }
    double sum1 = 0.0;
    double sum2 = 0.0;
    sum1 = b + sum;
    sum2 = (b + sum) / n;
    double sum3;
    int flag = 0;
    for (i = 0; i < n; i++) {
      sum3 = sum2 - num[i];
      if (sum3 < 0.0) flag = 1;
    }
    if (flag)
      printf("-1\n");
    else {
      for (i = 0; i < n; i++) {
        sum3 = sum2 - num[i];
        printf("%.6lf\n", sum3);
      }
    }
  }
}
