QOJ.ac

QOJ

Limite de temps : 1 s Limite de mémoire : 64 MB Points totaux : 100

#16440. Pepsi World Cup Journey

Statistiques

“...Before June 2002, every Pepsi bottle cap purchased will have the name of a Pepsi star on it. As long as you collect all the names of the Pepsi stars, you can participate in the Pepsi World Cup tour lucky draw to win a Pepsi star backpack, a portable player, and even travel to Korea and Japan to watch the World Cup. Hurry up and act!...”

Watching this on TV, you think: Suppose there are $n$ different star names, and the probability of each name appearing is the same. On average, how many bottles of drinks do you need to buy to collect all the names?

Input

Input a single integer $n$, where $2 \le n \le 33$, representing the number of different star names.

Output

Output the average number of bottles of drinks needed to collect all the names. If the result is an integer, output it directly; otherwise, output the integer part, followed by a space, and then the fractional part in the format numerator/denominator. The fraction must be irreducible.

Examples

Input 1

2

Output 1

3

Input 2

5

Output 2

5 11/12

Input 3

17

Output 3

340463 58/720720

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.