#include <bits/stdc++.h>
using namespace std;
long long int t;
int main() {
  long long int a, b, m;
  cin >> t;
  cin >> a >> b;
  m = t;
  if (a > b) {
    long long int count = 0, cb = 0;
    while (t >= 0) {
      t = m - count * a;
      if (t % b == 0)
        break;
      else
        count++;
    }
    if (t < 0)
      cout << "NO\n";
    else {
      cout << "YES\n";
      cb = t / b;
      cout << count << " " << cb << "\n";
    }
  } else {
    long long int count = 0, cb = 0;
    while (t >= 0) {
      t = m - count * b;
      if (t % a == 0)
        break;
      else
        count++;
    }
    if (t < 0)
      cout << "NO\n";
    else {
      cout << "YES\n";
      cb = t / a;
      cout << cb << " " << count << "\n";
    }
  }
  return 0;
}
