Task: Program Execution
Input (English): 4, 4, ['z', 'Z', '3049', '1249', '8605', '8799']
Output (English): 9421