#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, n;
  scanf("%I64d%I64d%I64d", &n, &a, &b);
  long long t = n / a + 1;
  for (long long i = 0; i <= t; i++) {
    long long m = a * i;
    if ((n - m) % b == 0 and n - m >= 0) {
      cout << "YES" << endl;
      cout << i << " " << (n - m) / b << endl;
      return 0;
    }
    if (m > n) break;
  }
  cout << "NO" << endl;
}
