#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, a, b, i = 0, cnt = 0, y;
  cin >> n >> a >> b;
  while (n >= 0) {
    if (i == 0) {
      n = n;
    } else {
      n = n - a;
    }
    if (n % b == 0 && n >= 0) {
      y = n / b;
      cnt++;
      break;
    }
    i++;
  }
  if (cnt > 0) {
    cout << "YES" << endl;
    cout << i << " " << y;
  } else if (cnt == 0) {
    cout << "NO";
  }
}
