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