#include <bits/stdc++.h>
using namespace std;
vector<int> v;
long long int i, j, k, t, n, q, coun, s, g, h, a[100005], b[100005], c[100005],
    flag, temp, flag1;
char x[100005], y[100005], z[100005];
int main() {
  cin >> n >> g >> h;
  for (i = 0; i <= n / g; i++) {
    if ((n - i * g) % h == 0) {
      cout << "YES" << endl;
      cout << i << ' ' << (n - i * g) / h;
      flag = 1;
      break;
    }
  }
  if (flag != 1) {
    cout << "NO";
  }
  return 0;
}
