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