#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  if (p % w == 0) {
    if (p / w > n) {
      cout << -1;
      return 0;
    }
    cout << p / w << " 0 " << n - p / w;
    return 0;
  }
  for (long long i = 0; i < d; i++) {
    long long k = p / w;
    if (k % d >= i) {
      k -= (k % d - i);
    } else {
      k -= k % d;
      k -= (d - i);
    }
    if (k < 0) continue;
    long long pp = p - k * w;
    if (pp / d + k > n || pp % d) {
      continue;
    }
    cout << k << " " << pp / d << " " << n - k - pp / d;
    return 0;
  }
  if ((p % w) % d) {
    cout << -1;
    return 0;
  }
  if ((p % w) / d + p / w > n) {
    cout << -1;
    return 0;
  }
  cout << p / w << " " << (p % w) / d << " " << n - ((p % w) / d + p / w);
  return 0;
}
