import sys input = sys.stdin.readline k = int(input()) res = 0. for x in range(1, 10 ** 7): res += 1 / (x ** 2 + x * k) print(res)