#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 7;
const int nol = 0;
long long n, a, cnt, ans, sum;
long double m;
deque<long long> v;
deque<long double> vc;
void vkoshp() {
  cin >> n >> m;
  for (long long i = 0; i < n; i++) {
    cin >> a;
    v.push_back(a);
    cnt = max(a, cnt);
  }
  for (long long i = 0; i < v.size(); i++)
    ans += cnt - v[i], vc.push_back(cnt - v[i]);
  if (ans > m) {
    cout << -1 << endl;
    return;
  }
  m -= ans;
  m /= n;
  for (auto i : vc) cout << fixed << setprecision(6) << i + double(m) << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) vkoshp();
}
