#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,popcnt,abm,mmx,tune=native")
#pragma GCC optimize("fast-math")
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  for (long long i = 0; i < w; i++) {
    long long l = p - i * d;
    if (l >= 0 && l % w == 0) {
      long long s = l / w + i;
      if (s <= n) return cout << s - i << ' ' << i << ' ' << n - s << '\n', 0;
    }
  }
  cout << -1;
}
