#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();
  return f * x;
}
int n, a, b, k;
int main() {
  n = read();
  a = read();
  b = read();
  if (n % b == 0) {
    printf("YES\n%d %d\n", 0, n / b);
    return 0;
  }
  k = n / b;
  for (int i = 1; i <= n / a; i++) {
    while (i * a + k * b > n) k--;
    if (i * a + k * b == n) {
      printf("YES\n%d %d\n", i, k);
      return 0;
    }
  }
  printf("NO\n");
  return 0;
}
