#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<float> v;
  vector<float> res;
  int n;
  float b;
  float max = 0;
  cin >> n >> b;
  for (int i = 0; i < n; i++) {
    float cv;
    cin >> cv;
    v.push_back(cv);
    res.push_back(0);
    if (max < cv) {
      max = cv;
    }
  }
  for (int i = 0; i < n; i++) {
    b = b - (max - v[i]);
    res[i] = (max - v[i]);
  }
  if (b < 0) {
    cout << "-1\n";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    res[i] += (b / ((float)n));
    printf("%f\n", res[i]);
  }
  return 0;
}
