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