'use strict';
(function(stdin) {
  var inputs  = stdin.toString().trim();//trim()????????????
(function(x) {
    console.log(Math.pow(x,3));
  }(parseInt(inputs.trim(),10)));

  console.log(inputs);
}(require('fs').readFileSync('/dev/stdin', 'utf8')));