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