 'use strict';
 (function(stdin) {
     var lines = stdin.toString().split('\n');
     var x = parseInt(lines[0],10);
     console.log(lines);
     console.log(Math.pow(x,3));                                             
  
 }(require('fs').readFileSync('/dev/stdin', 'utf8')));