'use strict';
(function(stdin) {

    //define function
    //declare variable

    var inputs = stdin.toString().trim().split('\n');
    var x = inputs;
    var set = x*x*x;
    //main

    //display
    //console.log(inputs[0]);
    //console.log(x);
console.log(parseInt(set));

}(require('fs').readFileSync('/dev/stdin', 'utf8')))