import std.stdio, std.string, std.conv;
import std.math;

void main() {
	auto input = getStdin!(int[])()[0];
	
	auto result = pow(input, 3);
	result.writeln;
}

T getStdin(T)() {
	string[] cmd;
	string line;
	while ((line = chomp(stdin.readln())) != "") cmd ~= line;
	return to!(T)(cmd);
}