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