
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
The following is a program: 
```plaintext
INPUT   a, k, n, m  
b = 0, i = 1  
DO  
    t = a MOD 10, b = b + t * k^(i - 1)  
    a = a / 10, i = i + 1  
LOOP UNTIL i > n  
c = 0, j = 0  
DO  
    q = b / m, r = b MOD m  
    c = c + r * 10^j, j = j + 1, b = q  
LOOP UNTIL q = 0  
PRINT   c  
END  
```
If the input is 213, 4, 3, 8, then the output result is ___.

Present the answer in LaTex format: \boxed{Your answer}
user