#include #include int main() { long long int splatit; long long int platm; int rok; double urok; char stihne = 0; long long int i; while(1) { stihne = 0; scanf("%lli %lli %d %lf", &splatit, &platm, &rok, &urok); if((splatit==0)&&(platm==0)&&(rok==0)&&(urok==0)) break; for(i=1; i<=rok*12; i++) { urok = urok + (urok/12); splatit = splatit + (splatit*((urok/12)/100)); splatit = splatit - platm; if(splatit <= 0) { stihne = 1; break; } } if(stihne == 1) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }