#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  int i = 0, ansa = -1, ansb = -1;
  for (i = 0; i * b <= n; i++) {
    if ((n - b * i) % a == 0) {
      ansb = i;
      ansa = (n - b * i) / a;
      break;
    }
  }
  if (ansa != -1) {
    cout << "YES" << endl << ansa << " " << ansb << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
