(stdin => {
  // Define Function
  // Declare Variable
  const inputs = stdin.toString().trim().split('\n')
  const x = parseInt(inputs, 10)

  console.log(Math.pow(x, 3));
})(require('fs').readFileSync('/dev/stdin', 'utf8'))

