#include<iostream>
int main(){
	int x,n=1;
	std::cin>>x;
	for(int i=0;i<3;++i){
		n=n*x;
	}
	std::cout<<n<<std::endl;
}
		
#include <iostream>
using namespace std;

int main(void)
{
     int input;
     int output;

     cin >> input;

     output = input * input * input;

     cout << output << endl;

     return 0;
}

     
     