#include <bits/stdc++.h>
using namespace std;
double q[105], sum;
int n, m, i;
int main() {
  cin >> n >> m;
  sum = m;
  for (i = 1; i <= n; i++) {
    cin >> q[i];
    sum += q[i];
  }
  sum = (sum * 1.0) / n;
  for (i = 1; i <= n; i++)
    if (sum - q[i] < 0) {
      cout << -1 << '\n';
      return 0;
    }
  for (i = 1; i <= n; i++) printf("%0.6f\n", sum - q[i]);
  return 0;
}
