
/**
  * Created by mui on 2016/10/23.
  */
object Main {
  import java.util.Scanner
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val a = sc.nextInt()
    val b = a * a * a
    println(b)
  }
}