#include <bits/stdc++.h>
using namespace std;
double n, m, a[100005], Max;
int main() {
  scanf("%lf%lf", &n, &m);
  for (int i = 1; i <= n; i++)
    scanf("%lf", a + i), m += a[i], Max = max(Max, a[i]);
  if (m / n < Max) {
    printf("-1\n");
    return 0;
  }
  for (int i = 1; i <= n; i++) printf("%.6lf\n", m / n - a[i]);
}
