var data = '';
var readable = process.stdin;

readable.setEncoding( 'utf-8' );
readable.on( 'data', function( chunk ) {
  data += chunk;
} )
readable.resume();
readable.on( 'end', function() {
  var x = parseInt( data );
  console.log( '%d', Math.pow( x, 3 ) );
} )