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