int main() {
    int a;
    __builtin_scanf("%d", &a);
    __builtin_printf("%d\n", static_cast<int>(__builtin_pow(a, 3)));
}
#include<bits/stdc++.h>
using namespace std;
int main(void){
int input;
cin >> input;
cout << input*input*input << endl;
return 0;
}
