#include <math.h>
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
    long sum;
    cin >> sum;
    cout << int(pow(sum, 3)) << endl;
}
#include <iostream>
using namespace std;
int main(void){
 int x,y;
 x=y=0;
 cin>>x;
 y=x*x*x;
 cout<<y<<endl;
 return 0;



}