process.stdin.setEncoding('utf8');

process.stdin.on('readable', function() {
  var chunk = process.stdin.read();
  if (chunk !== null) {
    var x = parseInt(chunk.trim(), 10);
    console.log(x * x * x);
  }
});