#include <bits/stdc++.h>
using namespace std;
class TaskB {
 public:
  void solve(std::istream& in, std::ostream& out) {
    long long int n, a, b;
    in >> n >> a >> b;
    for (int i = 0; i < 10000005; i++) {
      long long int x = n - i * a;
      if (x >= 0 and x % b == 0) {
        out << "YES\n";
        out << i << " " << x / b;
        return;
      }
    }
    out << "NO";
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  TaskB solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
