#include <bits/stdc++.h>
using namespace std;
vector<int> cost[4];
vector<vector<int> > G;
void solve() {
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  for (long long y = 0; y < w; y++) {
    if (p < y * d) continue;
    long long wx = p - y * d;
    if (wx % w) continue;
    long long x = wx / w;
    if (x + y > n) continue;
    cout << x << ' ' << y << ' ' << (n - x - y);
    return;
  }
  cout << -1;
}
int main() {
  ios_base::sync_with_stdio(false);
  int T;
  solve();
  return 0;
}
