#P4550. 收集邮票

收集邮票

Description

There are nn different kinds of stamps. Pipi wants to collect all kinds of stamps. The only way to collect is to buy from classmate Fanfan: each time Pipi can buy only one stamp, and which one of the nn kinds is obtained is equally likely, each with probability 1/n1/n. However, because Fanfan also likes stamps, Pipi must pay kk yuan for the kk-th purchase.

Now Pipi has no stamps. Pipi wants to know the expected amount of money needed to obtain all kinds of stamps.

Input Format

One line, a single integer NN (N10000N \le 10000).

Output Format

Output the amount of money to pay, with two decimal places.

3
21.25

Hint

Translated by ChatGPT 5