object Main{
  def cube(x:Int):Unit = {
    val ans = x * x * x
    println(ans)
  }

  def main(args:Array[String]){
    val sc = new java.util.Scanner(System.in)
    val x = sc.nextInt
    cube(x)
  }
}