var cube = function(x){return x*x*x;};
var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', function(line){
  var num_str = line.split(/\n/)[0];
  if(num_str.match(/\d{1,3}/)){
    var num = parseInt(num_str, 10);
    if(num>0){
      if(num<101){
        console.log(cube(num));
      }
    }
  }
});