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