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