process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
var line = chunk.toString();
var a = parseInt(line[0],10);
var b = Math.pow(a,3);
console.log(b);
});