#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, i, j, k, l, m, n, count = 0, flag = 0;
  cin >> n >> a >> b;
  ;
  for (i = 0; i <= 10000000; i++) {
    double x, y;
    long long int temp;
    temp = (n - i * a);
    if (temp < 0) break;
    if (temp % b == 0) {
      temp = temp / b;
      cout << "YES\n";
      cout << i << " " << temp << endl;
      exit(0);
    }
  }
  cout << "NO\n";
}
