#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll n, p, w, d;
  cin >> n >> p >> w >> d;
  for (ll y = 0; y <= w; y++) {
    ll pyd = p - y * d;
    if (pyd < 0) continue;
    if (pyd % w == 0) {
      ll x = pyd / w;
      ll z = n - x - y;
      if (z >= 0) {
        cout << x << ' ' << y << ' ' << z;
        return 0;
      }
    }
  }
  cout << -1;
  return 0;
}
