#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, a, b, x = 0, y = 0, g = 0;
  cin >> n >> a >> b;
  if (n % a == 0) {
    cout << "YES\n";
    cout << n / a << ' ' << 0;
    return 0;
  }
  if (n % b == 0) {
    cout << "YES\n";
    cout << 0 << ' ' << n / b;
    return 0;
  }
  for (int i = 0; i < n / a + 1; i++)
    if ((n - (a * i)) % b == 0) {
      cout << "YES\n";
      cout << i << ' ' << (n - (a * i)) / b;
      return 0;
    }
  cout << "NO";
  return 0;
}
