#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int a, b;
  cin >> a >> b;
  long long int m1 = max(a, b);
  long long int m2 = min(a, b);
  if (n % m1 == 0) {
    cout << "YES" << endl;
    if (a == m1) {
      cout << (n / m1) << " " << 0 << endl;
    } else {
      cout << 0 << " " << (n / m1) << endl;
    }
  } else if (n % m2 == 0) {
    cout << "YES" << endl;
    if (a == m2) {
      cout << (n / m2) << " " << 0 << endl;
    } else {
      cout << 0 << " " << (n / m2) << endl;
    }
  } else {
    int flag = 0;
    long long int c_m = 0;
    while (n > m1) {
      n -= m1;
      c_m += 1;
      if (n % m2 == 0) {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      if (a == m2) {
        cout << (n / m2) << " " << c_m << endl;
      } else {
        cout << c_m << " " << (n / m2) << endl;
      }
    }
  }
}
