#include <bits/stdc++.h>
using namespace std;
using ilong = int64_t;
using ulong = uint64_t;
void solution() {
  ilong n, p, w, d;
  cin >> n >> p >> w >> d;
  for (int y = 0; y <= w; ++y)
    if (ilong x = (p - y * d) / w; x * w + y * d == p && x >= 0 && x + y <= n) {
      cout << x << " " << y << " " << (n - x - y) << endl;
      return;
    }
  cout << -1 << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  solution();
}
