(function() {
    'use strict';

    var fs = require('fs');
    var contents = fs.readFileSync('/dev/stdin', 'utf-8');

    var cubic = function(s) {
        var x = parseInt(s);
        return x * x * x;
    }
    console.log(cubic(contents));
})();