process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on('data', function (input) {
    compose(putStrLn,x=>Math.pow(x,3),x=>x.trim())(input);
});

var compose = (...fs) => x => fs.reduceRight((y,g)=>g(y),x);

var putStrLn = x => console.log(x.toString());