'use strict';
process.stdin.on('data', function(chunk) {
  var lines = chunk.toString().split('\n');
  var result = (function(data) {
 	return Math.pow(data,3);	
  }(lines[0].map(Number)
  ));

  console.log(result);
});

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