#include<cstdio>

int main(){
	int x,S;
	1<=x>=100;
	scanf("%d", &x);
	S=x*x*x;
	printf("%d\n", S);

	return 0;
}
#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;
}