#include <bits/stdc++.h>

using namespace std;

int main(){
	long long k;

	scanf("%lld", &k);

	printf("%lld\n", k * k * k);

	return 0;
}