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