#include <bits/stdc++.h>
int main() {
  int a, b, n, x, y, m;
  while (~scanf("%d %d %d", &n, &a, &b)) {
    if (n % a == 0) {
      printf("YES\n%d 0\n", n / a);
      continue;
    } else if (n % b == 0) {
      printf("YES\n0 %d\n", n / b);
      continue;
    }
    int flag = 0;
    for (x = 1;; x++) {
      if (a * x > n) break;
      m = n - a * x;
      if (m % b == 0) {
        printf("YES\n%d %d\n", x, m / b);
        flag = 1;
        break;
      }
    }
    if (flag == 0) printf("NO\n");
  }
  return 0;
}
