M = 10000 # 分割 N = int(input()) ans = 0 for i in range(M): ans += ((i / M) ** 3 + N ** 3) ** 0.5 print(ans / M)