Little Pony and Alohomora Part I

Accepts: 132
Submissions: 442
Time Limit: 2000/1000 MS (Java/Others)
Memory Limit: 32768/32768 K (Java/Others)
Problem Description
Trixie is a female unicorn pony and traveling magician, having been rumored to be "the most magical unicorn in all of Equestria". One day, Trixie arrives in Ponyville. [center][img]../../../data/images/C531-1002-1.png[/img][/center] There is $n$ boxes on the stage. [b]There is a random key in each box and each box has a key match it.[/b] As a unicorn, Trixie can use "Alohomora"(the unlocking spell) to open any box. Trixie would like to open all the boxes, also Trixie would like to minimize the spells she used. Help Trixie to calculate the expected number of spells she need to used in order to open all the boxes necessary.
Input
Input contains multiple test cases (less than 100). For each test case, only one line contains one integer n ($1\leq n\leq 1000000000$).
Output
For each case, output the corresponding result, rounded to 4 digits after the decimal point.
Sample Input
1
2
Sample Output
1.0000
1.5000
Hint
The second sample: There are two different permutations when n equal to 2: (1, 2) and (2, 1). Trixie need to use 2 spells in (1, 2) and 1 spell in (2, 1).