#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long i, j, n, t;
  cin >> n;
  long long a, b;
  cin >> a >> b;
  j = max(a, b);
  t = min(a, b);
  i = 0;
  while (i * j <= n) {
    if ((n - i * j) % t == 0) {
      cout << "YES" << endl;
      if (j == a) {
        cout << i << " " << (n - i * j) / t << endl;
      } else {
        cout << (n - i * j) / t << " " << i << endl;
      }
      return 0;
    }
    i++;
  }
  cout << "NO" << endl;
  return 0;
}
