#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int maxn = 110000;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << setiosflags(ios::fixed) << setprecision(12);
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  int flag = 0;
  long long cur1, cur2;
  for (int y = 0; y < w; y++) {
    long long cur = p - y * d;
    if (cur >= 0) {
      if (cur % w == 0) {
        cur1 = cur / w;
        cur2 = y;
        if (cur1 + cur2 <= n) {
          flag = 1;
          break;
        }
      }
    }
  }
  if (!flag) {
    cout << -1 << "\n";
  } else {
    cout << cur1 << " " << cur2 << " " << n - cur1 - cur2 << "\n";
  }
  return 0;
}
