#include #include #include #include #include using namespace std; int main() { for(;;) { long long dlh, spl, rok; double urok; scanf("%lld%lld%lld%lf", &dlh, &spl, &rok, &urok); if (!dlh && !spl && !rok && !urok) break; int poc = 0; for(;;) { if (poc > rok*12-1 || dlh > 1000000000) { printf("NO\n"); break; } if (dlh <= 0.00000001) { printf("YES\n"); break; } dlh = (dlh +(dlh*(0.01*urok)/12)) - spl; poc++; } } return 0; }