#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    int a, b, c;
    cin >> c;
    cin >> a;
    cin >> b;
    int i = 0;
    while (1) {
      if ((c - (a * i)) < 0) {
        cout << "NO";
        break;
      }
      if ((c - (a * i)) % b == 0) {
        cout << "YES\n";
        cout << i << " " << (c - (a * i)) / b;
        break;
      }
      i++;
    }
  }
}
