#include <bits/stdc++.h>
using namespace std;
int n, b;
double h, g, sum, a[1010];
int main() {
  cin >> n >> b;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sum += a[i];
    g = max(g, a[i]);
  }
  if (sum + b < g * n) {
    cout << -1 << endl;
    return 0;
  }
  for (int i = 1; i <= n; i++)
    cout << fixed << setprecision(6) << (b + sum) / n - a[i] << endl;
  return 0;
}
