#include <bits/stdc++.h>
int asalmi(int x) {
  int i, k = (int)sqrt(x);
  for (i = 2; i <= k; i++)
    if (x % i == 0) return 0;
  return 1;
}
using namespace std;
int a[10000], b, n;
double t;
void read() {
  int i, j;
  double m;
  cin >> n >> b;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    t += a[i];
  }
  t += b;
  m = t / n;
  for (i = 1; i <= n; i++) {
    if (a[i] > m) {
      cout << -1;
      return;
    }
  }
  for (i = 1; i <= n; i++) {
    printf("%.6lf\n", m - (double)a[i]);
  }
}
void solve() { int i, j; }
void write() { int i, j; }
int main() {
  read();
  solve();
  write();
  return 0;
}
