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