#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, p, w, d;
  while (~scanf("%lld %lld %lld %lld", &n, &p, &w, &d)) {
    int flag = 0;
    for (long long i = 0; i < w; i++) {
      if ((p - i * d) % w == 0) {
        long long x = (p - i * d) / w;
        if (x < 0) continue;
        long long z = n - x - i;
        if (z < 0) continue;
        printf("%lld %lld %lld\n", x, i, z);
        flag = 1;
        break;
      }
    }
    if (!flag) printf("-1\n");
  }
}
