'use strict';
var Main = function(stdin) {
  var line = stdin.split('\n');
  var result = (function(data) {
    return Math.pow(data,3);
  }(
    parseInt(line[0],10)
  ));
  console.log(result);
};

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