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