#include <iostream>

int main(int argc, char const *argv[]) {
  int x, result;
  std::cin >> x;
  result = x*x*x;
  std::cout << result << "\n";

  return 0;
}
#include <iostream>
#include <math.h>
using namespace std;

int main() {
	// your code goes here
	int x;
	cin>>x;
	x=(int)(pow(x,3));
	cout<<x<<endl;
	return 0;
}