#include <bits/stdc++.h>
using namespace std;
long long n, p, w, d;
int main() {
  cin >> n >> p >> w >> d;
  for (long long i = 0; i < w; i++) {
    if ((p - i * d) % w == 0) {
      long long x = (p - i * d) / w;
      if (x >= 0 && x + i <= n) {
        printf("%lld %lld %lld\n", x, i, n - x - i);
        return 0;
      }
    }
  }
  cout << "-1" << endl;
  return 0;
}
