#include <bits/stdc++.h>
using namespace std;
long long MCD(long long a, long long b) {
  long long c;
  if (b > a) {
    c = b;
    b = a;
    a = c;
  }
  if (b == 0) {
    return a;
  } else {
    return MCD(a - b, b);
  }
}
int main() {
  long long n, a, b, x, y, c;
  cin >> n >> a >> b;
  c = MCD(a, b);
  bool sigue = true;
  if (n % c == 0) {
    a = a / c, b = b / c, n = n / c;
    x = 0;
    while (sigue) {
      if ((n - a * x) % b == 0) {
        sigue = false;
      }
      x++;
    }
    x--;
    c = n - a * x;
    if (c < 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      cout << x << " " << (n - a * x) / b << endl;
    }
  } else {
    cout << "NO" << endl;
  }
}
