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 = Number(line);
});
reader.on('close', () => {
    console.log(lines * lines *lines);
});
