#include <bits/stdc++.h>
using namespace std;
long long n, p;
long long w, d;
int main() {
  cin >> n >> p >> w >> d;
  long long x, y = -1, z = -1;
  for (long long i = p / w; i >= max(p / w - d, (long long)0); i--) {
    x = i;
    if (p - x * w >= 0 && (p - x * w) % d == 0) {
      y = (p - x * w) / d;
    }
    if (n - x - y >= 0) {
      z = n - x - y;
    }
    if (y != -1 && z != -1) break;
  }
  if (y != -1 && z != -1 && x + y + z == n)
    cout << x << " " << y << " " << z << endl;
  else
    cout << -1 << endl;
  return 0;
}
