import random N = int(input()) M = N ** 1.5 ans = M cnt = 10000000 ok = 0 for _ in range(cnt): x, y = random.random(), M + random.random() if y <= (x ** 3 + N ** 3) ** 0.5: ok += 1 print(ans + ok / cnt)