object Main{
    def main(args: Array[String]): Unit ={
        val scanner = new java.util.Scanner(System.in)
        var i = scanner.nextInt()
        System.out.println(Math.pow(i, 3).intValue())
    }
}