#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
long long i, j;
long long fastpow(long long x, long long y) {
  long long res = 1;
  x %= mod;
  while (y) {
    if (y & 1) res = (res * x) % mod;
    x = (x * x) % mod;
    y = (y >> 1);
  }
  return res;
}
long long prod(long long x, long long y) {
  long long res = 0;
  x %= mod;
  while (y) {
    if (y & 1) res = (res + x) % mod;
    x = (x * 2) % mod;
    y = y >> 1;
  }
  return res;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    long long n, a, b;
    cin >> n >> a >> b;
    if (n % 2 == 1 && a % 2 == 0 && b % 2 == 0) {
      cout << "NO"
           << "\n";
      continue;
    }
    if (n % a == 0) {
      cout << "YES"
           << "\n";
      cout << n / a << " ";
      cout << 0 << "\n";
      continue;
    } else if (n % b == 0) {
      cout << "YES"
           << "\n";
      cout << 0 << " ";
      cout << n / b << "\n";
      continue;
    } else {
      long long ii = 0;
      bool ok1 = false;
      for (i = 1; n - i * b >= 0; i++) {
        if ((n - i * b) % a == 0) {
          ok1 = true;
          ii = i;
          break;
        }
      }
      if (ok1) {
        cout << "YES"
             << "\n";
        cout << (n - ii * b) / a << " ";
        cout << ii << "\n";
        continue;
      }
      swap(a, b);
      ii = 0;
      bool ok2 = false;
      for (i = 1; n - i * b >= 0; i++) {
        if ((n - i * b) % a == 0) {
          ok2 = true;
          ii = i;
          break;
        }
      }
      if (ok2) {
        cout << "YES"
             << "\n";
        cout << (n - ii * b) / a << " ";
        cout << ii << "\n";
        continue;
      }
    }
    cout << "NO"
         << "\n";
  }
  return 0;
}
