k = int(input()) x = 0 for i in range(1,10**6): x += 1 /(i*(i+k)) print(x)