#include #include #include #include using namespace std; int main() { double EPS = 0.00000001; for(;;) { long long dlh, spl, rok; float urok; int pocitadlo = 0; scanf("%lld%lld%lld%f", &dlh, &spl, &rok, &urok); if (!dlh && !spl && !rok &&!urok) break; long long prev_dlh = dlh; urok /= 12; urok /= 100; urok +=1; double result = 1; for (int i = 0; i < rok; i++) result *= urok; dlh = dlh + result - (spl*(12*rok)); if (dlh <= 0+EPS) printf("YES\n"); else printf("NO\n"); } return 0; }