#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e9;
int GCD(int a, int b) {
  for (; b; a %= b, swap(a, b))
    ;
  return a;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ((void)0);
  ((void)0);
  ((void)0);
  long long N, P, x, y;
  int d, w, g;
  cin >> N >> P >> w >> d;
  g = GCD(d, w);
  if (P % g || w * N < P) {
    cout << "-1\n";
    return 0;
  }
  for (int i = 0; i <= w; i++)
    if ((P - 1LL * d * i) % w == 0 && (P - 1LL * d * i) / w >= 0 &&
        i + (P - 1LL * d * i) / w <= N) {
      cout << (P - 1LL * d * i) / w << ' ' << i << ' '
           << N - i - (P - 1LL * d * i) / w << '\n';
      return 0;
    }
  cout << "-1\n";
  return 0;
}
