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