object Main extends App{
  override def main(args:Array[String]):Unit = {
    val scanner = new java.util.Scanner(System.in)
    val x = scanner.nextInt
    val res = solve(x)
    println(res)
  }


  def solve(x : Int):Int = {
    x*x*x
  }
}