#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n, p, d, w;
  cin >> n >> p >> w >> d;
  long long x, y, z;
  for (y = 0; y <= min(n, 100000ll); ++y) {
    x = p - y * d;
    if (x % w || x < 0) continue;
    x /= w;
    z = n - x - y;
    if (z < 0) continue;
    cout << x << " " << y << " " << z;
    return 0;
  }
  cout << -1;
  return 0;
}
