
function main() {
  var input = getInput();
  var num = parseInt(input);
  console.log(num * num * num);
}

function getInput() {
  if (typeof require == "undefined") {
    return document.getElementById('input').value;
  }
  return require('fs').readFileSync('/dev/stdin').toString();
}

if (typeof require != "undefined") {
  main();
}