/* Solution to inchworm by Bob Roos */ #include int main() { int n,u,d,clk,position; while (scanf("%d %d %d",&n, &u, &d) && n > 0) { clk = 0; position = 0; while (position < n) { clk++; position += u; if (position >= n) break; clk++; position -= d; } printf("%d\n",clk); } return 0; }