function main(arg) {
  const count = parseInt(arg, 10)
  if (count === 1) {
    console.log(1)
  } else {
    console.log(count * count * count)
  }
}

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