object Main{
    def main(args: Array [String]) :Unit ={
        val sc=new java.util.Scanner(System.in)
        val a = sc.nextInt
        var b = 1
        for{i <- 1 to 3}
            b *= a
        println(b)
    }
}