#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t;
  std::vector<long double> v;
  scanf("%d", &n);
  scanf("%d", &t);
  long double b = t * 1.0000000;
  long double large = -1;
  for (int i = 0; i < n; i++) {
    int x;
    long double y;
    scanf("%d", &x);
    y = x * 1.000000;
    v.push_back(y);
    large = max(y, large);
  }
  std::vector<long double> ans;
  for (int i = 0; i < n; i++) {
    ans.push_back(large - v[i]);
    b -= (large - v[i]);
    if (b < 0) {
      cout << -1 << endl;
      return 0;
    }
  }
  cout << std::fixed;
  if (b > 0) {
    long double g = (b / n);
    for (int i = 0; i < n; i++) ans[i] += (b / n);
  }
  for (int i = 0; i < n; i++) {
    cout << setprecision(7) << ans[i] << endl;
  }
}
