#include <bits/stdc++.h>
using namespace std;
long long int mod_expo(long long int MOD, long long int a, long long int b) {
  long long int ans = 1;
  while (b) {
    if (b % 2) {
      ans *= a;
      ans %= MOD;
    }
    b /= 2;
    a *= a;
    a %= MOD;
  }
  return ans % MOD;
}
void display(vector<int> v1) {
  for (int i = 0; i < v1.size(); i++) {
    cout << v1[i] << " ";
  }
  cout << endl;
}
int dx[8] = {0, 1, 0, -1, 1, 1, -1, -1};
int dy[8] = {1, 0, -1, 0, 1, -1, 1, -1};
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int n, a, b;
  cin >> n >> a >> b;
  for (long long int x = 0; x * a <= n; x += 1) {
    long long int rem = n - (x * a);
    if (rem % b == 0) {
      long long int y = rem / b;
      cout << "YES" << endl;
      cout << x << " " << y;
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
