#include<iostream>
#include<algorithm>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<cmath>
#include<set>
#include<queue>
#include<stack>
#include<map>
#define PI acos(-1.0)
#define in freopen("in.txt", "r", stdin)
#define out freopen("out.txt", "w", stdout)
#define kuaidian ios::sync_with_stdio(0);
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int maxn = 2e5 + 7, maxd = 1e8;
const ll mod = 1e9 + 7;
const int INF = 0x7f7f7f7f;
int T, n;
int a, b;
int main() {
kuaidian;
cin >> n >> a >> b;
for(int i = 0; i*a <= n; ++i) {
if( (n-(i*a)) % b == 0) {
cout << "YES" << endl;
cout << i << " " << ((n-(i*a)) / b) << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}