process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  const ans = exec(lines);
  console.log(ans);
});

function exec(lines)
{
  const x = parseInt(lines[0]);
  return (x*x*x);
}
