#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e18;
const long long int MAX = 1e5 + 5;
int32_t main() {
  long long int n, p, w, d;
  cin >> n >> p >> w >> d;
  long long int x, y, z;
  for (long long int i = 0; i <= MAX; i++) {
    x = p - i * d;
    if (x % w == 0 && x / w + i <= n && x >= 0) {
      cout << x / w << " " << i << " " << n - x / w - i << "\n";
      return 0;
      ;
    }
  }
  cout << -1 << "\n";
  return 0;
  ;
}
