Pillow CPU repeatedly transforms a positive integer by the following process.
If the current value is , terminate the process.
Choose an integer uniformly at random from through . This step takes second.
If is divisible by , replace by . Otherwise, leave unchanged.
Return to step .
Given the initial integer , compute the expected time until the process terminates. The elapsed time depends only on the number of times step is executed.
The input is given from Standard Input in the following format:
For each test case, print the expected time until the process terminates, rounded to exactly two digits after the decimal point.
When , the process terminates immediately without making any choice, so the answer is .
Each case is given in the following format: