#!/bin/python3 import sys def pow(x, y): return 1 if y == 0 else x * pow(x, y - 1) def sumOfGroup(k): # Return the sum of the elements of the k'th group. return pow(k,3) if __name__ == "__main__": k = int(input().strip()) answer = sumOfGroup(k) print(answer)