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