#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,b;
cin>>n>>a>>b;
for(int x=0;x*a<=n;x++){
for(int y=0;x*a+y*b<=n;y++){
if(x*a+y*b==n){
cout<<"YES\n";
cout<<x<<" "<<y;
return 0;
}
}
}
cout<<"NO";
}