#include <bits/stdc++.h>
using namespace std;
int arr[100001];
int brr[100001];
int main() {
  long long n, a, b;
  while (~scanf("%lld%lld%lld", &n, &a, &b)) {
    int flag = 0;
    int x, y;
    if (n == 0)
      printf("YES\n0 0\n");
    else {
      for (int i = 0; i * a <= n; i++) {
        if ((n - a * i) % b == 0) {
          printf("YES\n%d %d\n", i, ((n - a * i) / b));
          flag = 1;
          break;
        }
      }
      if (!flag) printf("NO\n");
    }
  }
  return 0;
}
