#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int main() {
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  for (long long i = 0; i <= w; i++) {
    long long temp1 = p - i * d, temp2 = -100;
    if (temp1 % w == 0) {
      temp2 = (temp1 / w);
    }
    if (temp2 >= 0 && i + temp2 <= n) {
      cout << temp2 << " " << i << " " << n - i - temp2 << endl;
      return 0;
    }
  }
  puts("-1");
  return 0;
}
