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