def sumOfGroup(x): a=(x*x*x) return a # Return the sum of the elements of the k'th group. k = int(input().strip()) answer = sumOfGroup(k) print(answer)