#include <bits/stdc++.h>
using namespace std;
void func(void) {
  freopen("input.c", "r", stdin);
  freopen("output.c", "w", stdout);
}
int main() {
  long long n, q, i, j = 0, temp, t, k, ans = 0, sum = 0, x, y, z, cnt = 0, m,
                     fg = 0, mx = 0, mx1 = 0, mn = 8000000000000000000,
                     mn1 = 8000000000000000000;
  cin >> n >> x >> y;
  for (i = 0; i <= 10000000; i++) {
    temp = n - i * x;
    if (temp >= 0 and temp % y == 0) {
      cout << "YES" << endl;
      cout << i << " " << temp / y << endl;
      return 0;
    }
  }
  cout << "NO\n";
}
