A queen lives for seven days. On the first day she consumes 0.5 grams of honey, on the second through sixth days she consumes 1.5 times as much honey as she did the previous day, and on the seventh day she consumes no honey at all. She produces five new workers per day beginning with the third day. On the seventh day she also produces a new queen. Bees are born at the beginning of the day, so the day of their birth is their first day of life.
A worker lives for 20 days. For the first two days of its life its net honey production is zero. For each of the remaining 18 days of its life it produces N net centigrams of honey.
The input consists of one or more lines. Each line contains a single integer N, 0 < N < 1000. For each value of N, compute the number of days it will take for a new hive to produce a net 100 kilograms of honey (measured at the end of the day). Your output must appear exactly as shown in the examples below, including spacing, case and punctuation.
Input must be read from the file "prob7.in", and output must be
written to the file "prob7.out". All output to the screen will be
ignored.
<BOF> 900 <EOF>
It will take 161 day(s) to produce 100 kilograms of honey.
Dr. Eric Shade