#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
void print_time() {}
template <class T1, class T2>
ostream& operator<<(ostream& out, pair<T1, T2> pair) {
  return out << "(" << pair.first << ", " << pair.second << ")";
}
template <class T>
ostream& operator<<(ostream& out, vector<T> vec) {
  out << "(";
  for (auto& v : vec) out << v << ", ";
  return out << ")";
}
template <class T>
ostream& operator<<(ostream& out, set<T> vec) {
  out << "(";
  for (auto& v : vec) out << v << ", ";
  return out << ")";
}
template <class L, class R>
ostream& operator<<(ostream& out, map<L, R> vec) {
  out << "(";
  for (auto& v : vec) out << v << ", ";
  return out << ")";
}
long long gcd(long long a, long long b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
void solve() {
  long long n, p, w, d;
  cin >> n >> p >> w >> d;
  long long g = gcd(w, d);
  if (p % g) {
    cout << -1 << "\n";
    return;
  }
  for (long long ds = 0; ds <= w; ++ds) {
    long long left = p - ds * d;
    if (left % w || left < 0) continue;
    long long ws = left / w;
    if (ds + ws > n) continue;
    cout << ws << " " << ds << " " << (n - ws - ds) << "\n";
    return;
  }
  cout << -1 << "\n";
}
int main() {
  cout << fixed << setprecision(20);
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
  print_time();
  return 0;
}
