'use strict';
(function(stdin) { 
  var inputs = stdin.toString();
  (function(x) {console.log(Math.pow(x,3));
    //????????????????????????
  }(parseInt(inputs.trim(),10))); //????°??????????????¶?????????°?????????
}(require('fs').readFileSync('/dev/stdin', 'utf8')));