#include <bits/stdc++.h>
using namespace std;
double sum;
long long n, b, a[1012], ans;
int main() {
  cin >> n >> b;
  sum = b;
  for (int i = 1; i <= n; i++) cin >> a[i], sum += a[i];
  sum = sum * 1.0 / n;
  for (int i = 1; i <= n; i++) {
    if (sum - a[i] < 0) {
      cout << -1;
      return 0;
    }
  }
  for (int i = 1; i <= n; i++) printf("%.6f\n", sum - a[i]);
  return 0;
}
