#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long n, p, w, d;
  scanf("%lld%lld%lld%lld", &n, &p, &w, &d);
  long long m = p / w, l;
  for (int i = 0; i <= min(m, 100000ll); i++) {
    if ((p - (m - i) * w) % d == 0) {
      l = (p - (m - i) * w) / d;
      if (m - i + l <= n) {
        printf("%lld %lld %lld\n", m - i, l, n - m + i - l);
        return 0;
      }
    }
  }
  puts("-1");
}
