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