#include <bits/stdc++.h>
using namespace std;
const long long inf = (1LL << 60) - 1;
const long long mxn = 1e5;
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, -1, 1};
void solve() {
  long long n, a, b;
  cin >> n >> a >> b;
  for (long long i = 0; i <= (n / a); i++) {
    if ((n - i * a) % b == 0) {
      cout << "YES"
           << "\n";
      cout << i << " " << (n - i * a) / b << "\n";
      return;
    }
  }
  cout << "NO"
       << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cout.tie(0);
  ;
  solve();
  return 0;
}
