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