#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, m, n, val, t = 0, test;
  scanf("%d %d %d", &val, &m, &n);
  for (i = 0; m * i <= val; i++) {
    if ((val - m * i) % n == 0) break;
  }
  if (m * i <= val)
    printf("YES\n%d %d", i, (val - m * i) / n);
  else
    printf("NO\n");
  return 0;
}
