#include <bits/stdc++.h>
using namespace std;
long long n, p;
int d, w;
int main() {
  scanf("%lld %lld %d %d", &n, &p, &w, &d);
  int t = w - d;
  long long a = -1, b = -1, c = -1;
  long long l = (p + w - 1) / w, r = l + t;
  for (long long i = l; i <= r; i++) {
    if (p - d * i < 0 || -p + w * i < 0) continue;
    if ((p - d * i) % t || (-p + w * i) % t) continue;
    if (n - i < 0) continue;
    a = (p - d * i) / t, b = (-p + w * i) / t, c = n - i;
  }
  if (a == -1)
    printf("-1\n");
  else
    printf("%lld %lld %lld\n", a, b, c);
  return 0;
}
