/**
  * Created by ??\??? on 2016/12/6.
  */
object Main{
    def main(args : Array[String])={
        var a = readInt()
        while(!(a==null))
        {
            val b = a*a*a
            Console.println(b)
            a = readInt()
        }
    }
}