var readable = process.stdin;
readable.setEncoding( 'utf-8' );
readable.on( 'data', function( chunk ) {
  var arr = chunk.split( '\n' );
  var x = parseInt( arr[0] );
  console.log( '%d', Math.pow( x, 3 ) );
} )