#include <bits/stdc++.h>
using namespace std;
void gcd(long long a, long long b, long long &d, long long &x, long long &y) {
  if (!b) {
    d = a;
    x = 1;
    y = 0;
  } else {
    gcd(b, a % b, d, y, x);
    y -= x * (a / b);
  }
}
int main() {
  long long n, a, b;
  cin >> n >> a >> b;
  long long x, y, d;
  gcd(a, b, d, x, y);
  if (n % d)
    printf("NO\n");
  else {
    long long c = n / d;
    x = x * c;
    long long e = b / d;
    if (x >= 0)
      x = x % e;
    else
      x = (x % e + e) % e;
    y = (n - a * x) / b;
    if (y >= 0) {
      printf("YES\n");
      cout << x << " " << y << endl;
    } else
      printf("NO\n");
  }
}
