#include<stdio.h>
#include<string.h> 
#define ll long long
 
int main()
{
  	unsigned ll n;
  	unsigned ll answer;
  
  	scanf("%llu",&n);
  	if(n==1)
      	answer=1;
  	else
      	answer=n*n*n;
  	prinf("llu",answer);
  return 0;
}