object Main {
    def main(args: Array[String]): Unit = {
//        val strAry = io.StdIn.readLine().split(' ')
//        println(strAry.sorted.mkString(" "))
        val x = io.StdIn.readInt()
        println(x * x * x)
    }
}

