#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n, a, b;
  cin >> n >> a >> b;
  for (long long i = 0; i <= n; ++i) {
    if (a * i > n) {
      break;
    }
    long long cur = a * i;
    if (n - cur >= 0 && (n - cur) % b == 0) {
      cout << "YES\n";
      cout << i << " " << (n - cur) / b;
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
