k = io.read("*n") if k == 0 then print(math.pi * math.pi / 6) else v = 0 for i = 1, k do v = v + 1 / i end print(v / k) end