#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
void read(int& val) {
  int x = 0;
  int bz = 1;
  char c;
  for (c = getchar(); (c < '0' || c > '9') && c != '-'; c = getchar())
    ;
  if (c == '-') {
    bz = -1;
    c = getchar();
  }
  for (; c >= '0' && c <= '9'; c = getchar()) x = x * 10 + c - 48;
  val = x * bz;
}
const int maxn = 1e2 + 2;
int main() {
  long long n, p, d, w;
  cin >> n >> p >> w >> d;
  long long x = -1, y = -1, z;
  for (int i = 0; i <= w - 1; i++) {
    if (1LL * i * d > p) break;
    if ((p - 1LL * i * d) % w == 0) {
      y = i;
      x = (p - 1LL * i * d) / w;
      break;
    }
  }
  if (x + y > n || x == -1) {
    printf("-1");
    return 0;
  }
  z = n - x - y;
  printf("%lld %lld %lld\n", x, y, z);
  return 0;
}
