(function(stdin) {
     var lines = stdin.toString().split('\n');
     var x = parseInt(lines[0],10);
                                                                         
        console.log(Math.pow(x,3));
}(require('fs').readFileSync('/dev/stdin','utf8')));
 