#include <bits/stdc++.h>
using namespace std;
const long long mod = 998244353;
const long long MOD = 998244353;
inline long long add(long long x, long long y) {
  x += y;
  if (x >= mod) x -= mod;
  return x;
}
inline long long sub(long long x, long long y) {
  x -= y;
  if (x < 0) x += mod;
  return x;
}
inline long long mul(long long x, long long y) { return (x * 1ll * y) % mod; }
vector<long long> adj[200100];
long long vis[200100];
long long par[200100];
signed main() {
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  long long a, b, c;
  for (long long i = 0; i < w; i++) {
    c = p - i * d;
    if (c < 0) continue;
    if (c % w == 0) {
      if (c / w + i <= n)
        return cout << c / w << " " << i << " " << n - c / w - i, 0;
    }
  }
  cout << -1;
}
