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