Hidden Truth in Recurrence#1514

Hidden Truth in Recurrence

1 second
128 megabytes
Very easy

A recursive function is given as follows:

prb1514_1
prb1514_2

Calculate the value , where m = 10^t.

Input

Each line contains three integers: (0 < k < 10^{19}), (0 < n < 10^{19}), and (0 < t < 10). The last line contains three zeros and must not be processed.

Output

For each test case, output the test case number and the value of on a separate line. The output format is shown in the sample.

Examples

Example 1

Loading
Loading