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