Universal Cup Judging System

Universal Cup

Limite de temps : 4.0 s Limite de mémoire : 1024 MB Points totaux : 100 Hackable ✓
Statistiques

There are $n$ initially empty buckets arranged in a line.

Every minute, Palych chooses one of the non-locked buckets uniformly at random and puts one easter egg into it! After that, you may lock any number of buckets, possibly zero. Once a bucket is locked, it remains locked forever.

You win as soon as the numbers of eggs in the buckets, from left to right, form a strictly increasing array.

You are not allowed to lock any buckets before the first egg is dropped. Also, if you lock all the buckets before you win — you lose, and this outcome must be avoided.

Your goal is to minimize the expected number of minutes until you win. Determine this minimum expected value.

Input

The first line contains one integer $n$ ($2 \le n \le 100$) — the number of buckets.

Output

Output one real number — the minimum possible expected number of minutes until you win.

Your answer will be considered correct if its absolute or relative error does not exceed $10^{-6}$.

Examples

Input 1

2

Output 1

2.0

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.