#include <bits/stdc++.h>
int main() {
  long long int n, a, b, i, t;
  scanf("%lld %lld %lld", &n, &a, &b);
  t = n / a + 1;
  for (i = 0; i < t; i++) {
    if ((n - (a * i)) % b == 0 && n - (a * i) >= 0) {
      printf("YES\n%lld %lld", i, (n - (a * i)) / b);
      return 0;
    }
  }
  printf("NO");
  return 0;
}
