#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-11;
const int p = 1000000007;
int countbit(int n) { return n == 0 ? 0 : countbit(n / 2) + n % 2; }
int lowbit(int n) { return (n ^ (n - 1)) & n; }
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
long long toInt64(string s) {
  istringstream sin(s);
  long long t;
  sin >> t;
  return t;
}
template <typename T>
T sqr(T n) {
  return n * n;
}
template <typename T>
void out(T& v) {
  for (int i = 0; i < v.size(); i++) cout << v[i] << ' ';
  cout << endl;
}
int main() {
  double start = static_cast<double>(clock());
  int n, b;
  cin >> n >> b;
  vector<double> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  double all = accumulate(a.begin(), a.end(), double(b));
  double perPerson = all / n;
  bool ok = true;
  for (int i = 0; i < n; i++)
    if (a[i] - perPerson > eps) {
      cout << -1 << endl;
      ok = false;
      break;
    }
  if (ok)
    for (int i = 0; i < n; i++) {
      cout.setf(ios::fixed, ios::floatfield);
      cout.precision(8);
      cout << perPerson - a[i] << endl;
    }
  return 0;
}
