#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, b;
  cin >> n >> a >> b;
  long long int p = n;
  for (long long int i = 0; i <= 10000000; i++) {
    long long int q = n - (i * a);
    long long int x = q / b;
    if ((i * a) + (x * b) == n && q >= 0) {
      cout << "YES\n";
      cout << i << ' ' << x << endl;
      return 0;
    }
  }
  cout << "NO\n";
}
