#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 4e5 + 5;
const long long MOD = 1e9 + 7;
const long double eps = 1e-6;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, a, b;
  cin >> n >> a >> b;
  for (long long i = 0; i * a <= n; ++i) {
    long long x = n - i * a;
    if (x % b == 0) {
      cout << "YES\n";
      cout << i << " " << x / b;
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
