#include <bits/stdc++.h>
int gcd(int x, int y) {
  if (x == 0) {
    return y;
  } else if (x > y) {
    gcd(x % y, y);
  } else {
    gcd(y % x, x);
  }
}
int main() {
  int n, a, b, la = 0;
  scanf("%d %d %d", &n, &a, &b);
  if (n % a == 0) {
    printf("YES\n%d 0\n", n / a);
    return 0;
  } else if (n % b == 0) {
    printf("YES\n0 %d\n", n / b);
    return 0;
  }
  int c = a * b / gcd(a, b);
  if (n % c == 0) {
    printf("YES\n%d 0\n", n / a);
  }
  if (n >= c * 2) {
    int temp = n / c - 1;
    la += temp * c / a;
    n -= temp * c;
  }
  if (a > b) {
    for (int i = 1; i * a <= n; i++) {
      int num = n - i * a;
      if (num % b == 0) {
        printf("YES\n%d %d\n", la + i, num / b);
        return 0;
      }
    }
  } else {
    for (int i = 1; i * b <= n; i++) {
      int num = n - i * b;
      if (num % a == 0) {
        printf("YES\n%d %d\n", la + num / a, i);
        return 0;
      }
    }
  }
  printf("NO\n");
  return 0;
}
