#!/bin/python import sys if __name__ == "__main__": k = int(raw_input().strip()) answer = k**3 print answer