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