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