#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int a, b, n;
  cin >> n >> a >> b;
  for (int i = 0; i <= n / max(a, b); i++) {
    if ((n - (a * i)) % b == 0) {
      cout << "YES" << endl << i << " " << (n - (a * i)) / b;
      return 0;
    }
    if ((n - (b * i)) % a == 0) {
      cout << "YES" << endl << (n - (b * i)) / a << " " << i;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
