#include <bits/stdc++.h>
using namespace std;
long long int pow1(long long int n, long long int p) {
  if (p == 0) return 1;
  long long int x = pow1(n, p / 2);
  x = (x * x) % 1000000007;
  if (p % 2 == 0)
    return x;
  else
    return (x * n) % 1000000007;
}
bool sortbysec(const pair<long long int, long long int> &a,
               const pair<long long int, long long int> &b) {
  return (a.second < b.second);
}
bool compare(const pair<long long int, long long int> &p1,
             const pair<long long int, long long int> &p2) {
  if (p1.first < p2.first) return true;
  if (p1.first == p2.first) return p1.first < p2.second;
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, a, b, i, e;
  cin >> n >> a >> b;
  for (i = 0; i <= n; i++) {
    e = n - (a * i);
    if (e % b == 0 && e >= 0) {
      cout << "YES";
      cout << "\n";
      cout << i << " " << e / b;
      return 0;
    }
    e = n - (b * i);
    if (e % a == 0 && e >= 0) {
      cout << "YES";
      cout << "\n";
      cout << e / a << " " << i;
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
