#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n, p, w, d;
  cin >> n >> p >> w >> d;
  long long int l = 0, r = n, mid, ans = -1;
  long long int x, y, z, p1 = -1;
  for (y = 0; y <= 1000001; y++) {
    x = (p - y * d) / w;
    z = n - x - y;
    if ((x + y + z) == n && (x * w + y * d) == p && x >= 0 && y >= 0 &&
        z >= 0) {
      p1 = 1;
      break;
    }
  }
  if (p1 == 1) {
    cout << x << " " << y << " " << z;
  } else {
    cout << -1;
  }
}
