#include <bits/stdc++.h>
using namespace std;
const int N = 200000 + 10;
const int M = 100000 + 10;
int main() {
  long long n1, n2, n3, n4;
  cin >> n1 >> n2 >> n3 >> n4;
  if (n3 * n1 < n2) {
    cout << "-1";
    return (0);
  }
  long long w = n2 / n3;
  long long rem = n2 - (w * n3);
  if (rem != 0 && (rem % n4 != 0) && (n3 % n4 == 0)) {
    cout << "-1";
    return (0);
  }
  while (w >= 0) {
    if (rem % n4 == 0 && (w + (rem / n4)) <= n1) {
      cout << w << " " << rem / n4 << " " << n1 - w - (rem / n4);
      return (0);
    }
    w--;
    rem = rem + n3;
  }
  cout << "-1";
}
