Eager for Tea
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

Thousand wants to drink a cup of tea.

The volume of his teacup is 1 unit and it is empty initially. Thousand will not drink the tea unless the teacup is full.


Thousand places the teacup on his table, and waits for his assistant BSP to fill the teacup.

Every time BSP visits Thousand's office, BSP will bring a pot with  units of tea randomly, and fill them all into Thousand's teacup.


Thousand wants to know the expected number of visits his assistant has to make so that he can drink the tea.


Note that x and u are real numbers.

输入描述:

The input consists of:

    One line containing a real number x .

输出描述:

Please output one real number rounded to 9 digits decimal, representing the expected times.
示例1

输入

复制
2.5

输出

复制
1.491824698