#include #include #include #include using namespace std; int main(){ int X,Y,N,A[80],num,sum=0; cin >> X >> Y >> N; for(int i=0;i> num; if(( ((sum+num)/X)-(sum/Y) ) * (X-Y) > num){ cout << "NO\n"; } sum+=num; } cout << "YES\n"; return 0; }