#include <bits/stdc++.h>
using namespace std;
const int INF = (int)2e+9;
const int MAX_N = 2e5 + 7;
int main() {
  int n, bott;
  cin >> n >> bott;
  int arr[n], MAX = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    MAX = max(arr[i], MAX);
  }
  int mugs = 0;
  for (int i = 0; i < n; i++) mugs += (MAX - arr[i]);
  mugs = bott - mugs;
  if (mugs < 0) {
    cout << -1;
    return 0;
  }
  cout.precision(6);
  for (int i = 0; i < n; i++)
    cout << fixed << (mugs * 1.0 / n) + (MAX - arr[i]) * 1.0 << endl;
  return 0;
}
