#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  for (int i = 0; i < w; ++i) {
    long long a = 0, b = 0;
    b += i;
    long long tot = d * i;
    if (tot > p) continue;
    long long k = (p - tot) / (w * d);
    a += k * d;
    long long rem = p - tot - w * d * k;
    if (rem % w != 0) continue;
    a += rem / w;
    if (a + b <= n) {
      cout << a << ' ' << b << ' ' << n - a - b;
      return 0;
    }
  }
  cout << -1;
  return 0;
}
