/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_B
  * x ??? 3 ???
  * ???????????´??° x ?????????????????§???x ?????????????¨????????????????????????????????????°?????????????????????????????????
  */
object Main {
  def main(args: Array[String]): Unit = {
    val x = io.StdIn.readInt()
    val xCubic = Math.pow(x, 3).toInt
    println(xCubic)
  }
}