#include <bits/stdc++.h>
using namespace std;
int n, a, b;
vector<bool> table;
vector<int> as;
vector<int> bs;
int main() {
  std::ios::sync_with_stdio(false);
  cin >> n >> a >> b;
  table.resize(n + 1, false);
  as.resize(n + 1, 0);
  bs.resize(n + 1, 0);
  table[0] = true;
  for (int i = 1; i <= n; ++i) {
    if (i - a >= 0 && table[i - a])
      table[i] = true, as[i] = as[i - a] + 1, bs[i] = bs[i - a];
    else if (i - b >= 0 && table[i - b])
      table[i] = true, as[i] = as[i - b], bs[i] = bs[i - b] + 1;
  }
  if (table[n])
    cout << "YES\n" << as[n] << " " << bs[n] << endl;
  else
    cout << "NO\n";
  return 0;
}
