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