'use strict';

function main(stdin) {
  const input = stdin.split(' ').map(v => parseInt(v, 10));
  const N = input[0];
  
  console.log(N * N * N);
}

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