Task: Program Execution
Input (English): 2, 2, ['z', '1831']
Output (English): 1381