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