process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split('\n');
    var n = lines.length;
    for(var i=0; i<n; i++) {
        console.log(Math.pow(Number(lines[i]), 3));
    }
});