#include #include #include using namespace std; int main (void) { int x,y,i,j,a, n; //x je ciastka //Y je splatka mesiac //N pocet rokov za ktory sa ma splatit double r,b,xx; while (1) { scanf ("%d %d %d %lf", &x, &y, &n, &r); a=(int)r; if (x == 0 && y == 0 && n == 0 && a == 0) { break; } xx = x; xx=(12*(((xx*(r/100))+xx)-y))*n; if(xx<=0)printf("YES\n"); else printf("NO\n"); } return (0); }