#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j;
  long long N, A, B;
  cin >> N >> A >> B;
  for (i = 0; i <= N / B; i++) {
    long long RHS = (N - (B * i));
    if (RHS % A == 0) {
      cout << "YES" << endl;
      cout << RHS / A << " " << i;
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
