#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a, b;
  cin >> n >> a >> b;
  {
    for (long long i = 0; i <= 10000 * 1000 && a * i <= n; ++i) {
      if ((n - a * i) % b == 0 && (n - a * i) / b >= 0) {
        cout << "YES\n";
        cout << i << " " << (n - a * i) / b << "\n";
        return 0;
      }
    }
    cout << "NO\n";
  }
}
