#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, b;
  cin >> n >> a >> b;
  bool f = false;
  long long int y, x;
  for (long long int i = 0; i * a <= n; i++) {
    if ((n - i * a) % b == 0) {
      f = true;
      y = ((n - i * a) / b);
      if (((n - y * b) / a) >= 0) x = (n - y * b) / a;
      cout << "YES" << endl << x << ' ' << y << endl;
      break;
    }
  }
  if (!f) cout << "NO" << endl;
}
