Read number till eternity - MarisaOJ: Marisa Online Judge

Read number till eternity

Time limit: 1000 ms
Memory limit: 256 MB
Read an integer $n$. If $n$ is non-zero, print $n^5$ and repeat. If $n$ is zero, stop the program. ### Input - A list of integer, ending with 0. ### Output - The result. ### Constraints - $-1000 \le n \le 1000$ and the list contains no more than 1000 numbers. ### Example Input: ``` 4 3 12 321 0 ``` Output: ``` 1024 243 248832 3408200705601 ```