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