#include <bits/stdc++.h>
using namespace std;
const long long infll = powl(2, 62) - 1;
const long double pi = 4.0 * atanl(1.0);
const long long mod = powl(10, 9) + 7;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, a, b;
  cin >> n >> a >> b;
  for (long long i = 0; i <= n / a + 1; ++i) {
    long long temp = n - i * a;
    if (temp % b == 0 && temp >= 0) {
      cout << "YES\n";
      cout << i << ' ' << temp / b << '\n';
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
