Task: Program Execution
Input (English): 3, 3, ['6275', 'Z', '2523']
Output (English): 2523