'use.strict';
(function(stdin) {
  var inputs = stdin.toString();
  var x = inputs.trim().sprit('\n').map(Number)[0];
  console.log(Math.pow(x,3));

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