#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a, b, x, y, cnt = 0, cnt1 = 0;
  cin >> n >> a >> b;
  long long int c = n / a;
  long long int d = n / b;
  if ((n % a == 0 && n % b != 0) || (n % a == 0 && n % b == 0)) {
    cout << "YES" << endl;
    cout << n / a << " "
         << "0" << endl;
  } else if (n % a != 0 && n % b == 0) {
    cout << "YES" << endl;
    cout << "0"
         << " " << n / b << endl;
  } else if (n % b != 0 && n % a != 0) {
    for (long long int i = 1; i <= c; i++) {
      if ((n - (i * a)) % b == 0) {
        cnt++;
      }
    }
    for (long long int i = 1; i <= d; i++) {
      if ((n - (i * b)) % a == 0) {
        cnt1++;
      }
    }
    if ((cnt >= 1 && cnt1 == 0) || (cnt >= 1 && cnt1 >= 1)) {
      cout << "YES" << endl;
      for (long long int i = 1; i <= c; i++) {
        if ((n - (i * a)) % b == 0) {
          x = i;
          break;
        }
      }
      cout << x << " " << (n - (x * a)) / b << endl;
    } else if (cnt == 0 && cnt1 >= 1) {
      cout << "YES" << endl;
      for (long long int i = 1; i <= d; i++) {
        if ((n - (i * b)) % a == 0) {
          y = i;
          break;
        }
      }
      cout << (n - (y * b)) / a << " " << y << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
