#include <iostream>
#include <math.h>
using namespace std;
int main(){
	int x, M;
	cin >> x;
	M = pow(x, 3.0);
	cout << M << endl;
	return 0;
}
#include <iostream>

int main()
{
    int x;
    std::cin >> x;
    std::cout << x * x * x << "\n";
}