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