#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <limits.h>
#include <string>
#include <string.h>
#include <sstream>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <stack>
#include <queue>

using namespace std;

typedef long long ll;

int main(){
  int num;
  cin >> num;

  printf("%d\n", (int)pow( num, 3 ));
  return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main()
{
	string s; cin>>s;
	int x=stoi(s);
	int y=x*x*x;
	cout<<to_string(y)<<endl;
}