from math import *
def volume(n):
    v=.....
    for i in range(n):
        ..........................
    return v