import sys


def main():
    input = lambda: sys.stdin.readline()[:-1]
    N = int(input())

    v = (5 * (3 + 5**0.5)) / 12 * (N**3)
    print(v)


if not __debug__:
    f = open(sys.argv[1], "r")
    sys.stdin = f

main()