#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)3e3 + 9;
const int maxm = (int)1e6 + 9;
const long long mod = (long long)1e9 + 7;
const double pi = acos(-1);
const double eps = 1e-15;
int main() {
  long long n, p, w, d;
  scanf("%lld%lld%lld%lld", &n, &p, &w, &d);
  for (long long i = 0; i < w; i++) {
    long long t = p - i * d;
    if (t >= 0 && t % w == 0 && t / w + i <= n) {
      printf("%lld %lld %lld\n", t / w, i, n - t / w - i);
      return 0;
    }
  }
  cout << -1 << endl;
  return 0;
}
