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