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

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout,
});

let lines = [];

reader.on("line", (line) => {
  lines.push(line);
});

reader.on("close", () => {
    const x = Number(lines[0]);
    console.log(Math.pow(x, 3))
});
