#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  ;
  long long n, p, w, d, xx = 1e18;
  cin >> n >> p >> w >> d;
  long long x = -1, y = -1, z = -1;
  const int ITER = 1e7;
  for (y = 0; y < ITER; ++y) {
    if ((p - (y * d)) % w == 0) {
      x = (p - (y * d)) / w;
      z = n - x - y;
      break;
    }
  }
  if (x < 0 or y < 0 or z < 0)
    cout << "-1\n";
  else
    cout << x << " " << y << " " << z << "\n";
  return 0;
}
