e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

PP2. Week 1: March 1 - 7

Harmonic series

Given the value of n, find the sum of Harmonic series:

prb10303.gif

Input

One positive integer n (1n104).

Output

Print the sum of Harmonic series with 4 decimal digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3
Output example #1
1.8333
Author Michael Medvedev