#include <bits/stdc++.h>
using namespace std;
long long a, b, n;
inline long long getint() {
  long long ret = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') ret = ret * 10 + c - '0', c = getchar();
  return ret * f;
}
inline void exgcd(long long a, long long b, long long &x, long long &y) {
  if (!b) {
    x = 1;
    y = 0;
    return;
  }
  exgcd(b, a % b, x, y);
  int tmp = x;
  x = y;
  y = tmp - a / b * y;
}
inline long long gcd(long long a, long long b) {
  return !b ? a : gcd(b, a % b);
}
int main() {
  n = getint();
  a = getint();
  b = getint();
  long long g = gcd(a, b), x, y;
  exgcd(a, b, x, y);
  x = x * n / g;
  y = y * n / g;
  if (x * a + b * y != n) {
    printf("NO");
    return 0;
  }
  if (x >= 0) {
    x -= x / b * b;
    y = (n - x * a) / b;
  } else if (x < 0) {
    x += ceil((-x) * 1.0 / b) * b;
    y = (n - x * a) / b;
  }
  if (y < 0)
    printf("NO");
  else
    printf("YES\n%I64d %I64d", x, y);
  return 0;
}
