import java.util.Scanner

object XCubic {
  val sc = new Scanner(System.in)

  def run: Unit = {
    val a = sc.nextInt()
    val b = a * a * a
    println(b)
  }
}
object Main extends App {
  XCubic.run
}