#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  long long above = n * w - p;
  if (p == 0) {
    cout << "0 0 " << n << endl;
  } else if (above < 0 || d > p) {
    cout << -1 << endl;
  } else {
    long long xx = p / w;
    for (long long k = 0; k <= 1e6; k++) {
      long long x = xx - k;
      if (x < 0) break;
      long long sheng = p - x * w;
      if (sheng % d != 0) continue;
      long long y = sheng / d;
      if (x + y > n) continue;
      cout << x << " " << y << " " << n - x - y << endl;
      return 0;
    }
    cout << -1 << endl;
  }
  return 0;
}
