k = int(input()) result = 0 for n in range(1, 100000): result += 1 / (n * (n + k)) print(result)