from math import pi K = int(input()) if K: ans = sum(1 / i for i in range(1, K + 1)) / K else: ans = pi ** 2 / 6 print(ans)