#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int T;
  T = 1;
  while (T--) {
    long long int n, a, b;
    cin >> n >> a >> b;
    int i;
    i = 0;
    while (i * a <= n) {
      if ((n - i * a) % b == 0) {
        cout << "YES" << endl;
        cout << i << " " << (n - i * a) / b << endl;
        return 0;
      }
      ++i;
    }
    cout << "NO" << endl;
  }
  return 0;
}
