Let be an integer. We define a function which returns the cube of sum of digits of .
You are given two integers and . You have to find the value of the integer that is returned when the function is recursively applied times on .
Formally, you have to find the value of .
Input format
Output format
The output should consist of lines each containing a single integer corresponding to the required value .
Constraints
The Sum of digits of 3 is 3.
The Sum of digits of 27 is 9.