#include <bits/stdc++.h>
const long long INF = 2e18;
const long long N = 1e5;
const long long mod = 1e9;
const long double eps = 1E-7;
using namespace std;
void solve() {
  int n, a, b;
  cin >> n;
  cin >> a;
  cin >> b;
  for (int i = 0; i <= n; ++i) {
    if (a * i > n) break;
    if (!((n - a * i) % b)) {
      cout << "YES\n";
      cout << i << " " << (n - a * i) / b << endl;
      return;
    }
  }
  cout << "NO\n";
}
bool mtest = false;
int main() {
  ios_base::sync_with_stdio(0);
  int TE = 1;
  if (mtest) cin >> TE;
  while (TE--) solve();
  return 0;
}
