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