object main extends App{
  def Main(args: Array[String]): Unit ={
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt()

    println(Math.pow(n, 3).asInstanceOf[Int])
  }
}object Main {
  def main(args: Array[String]): Unit ={
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt()

    println(Math.pow(n, 3).asInstanceOf[Int])
  }
}