#include <bits/stdc++.h>
using namespace std;
long long n;
long double m, k, cnt, ans, sum, x, y;
string s, s1, a, b, c;
vector<string> v;
set<int> st;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> m;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  k = (sum + m) / n;
  for (int i = 0; i < n; i++) {
    if (k - arr[i] < 0) cnt++;
  }
  if (cnt == 0)
    for (int i = 0; i < n; i++)
      cout << fixed << setprecision(6) << k - arr[i] << endl;
  else
    cout << -1;
}
