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