#include<iostream>
#include<math.h>
using namespace std;
class Xcubic{
public:
  int cal(int x){
    int res=(int)pow(x,3);
    return res;
  }
};
int main(){
  int x;
  cin>>x;
  Xcubic xcubic;
  cout<<xcubic.cal(x)<<endl;
  return 0;
}
#include<iostream>
#include<iomanip>
using namespace std;
int main(void){
      int x;
       cin >> x;
       cout << x*x*x <<"\n";
    return 0;
}