#include <bits/stdc++.h>
const double pi = 3.1415926535897;
using namespace std;
double arr[105], add[105] = {};
int main() {
  double n, b;
  cin >> n >> b;
  double maxi = -1;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    maxi = max(maxi, arr[i]);
  }
  for (int i = 0; i < n; i++) {
    if (arr[i] != maxi) {
      double diff = maxi - arr[i];
      if (diff <= b) {
        add[i] = diff;
        arr[i] = maxi;
        b -= diff;
      } else
        return cout << -1, 0;
    }
  }
  for (int i = 0; i < n; i++) {
    cout << setprecision(6) << fixed << add[i] + (b / n) << endl;
  }
}
