Task: Program Execution
Input (English): 4, 4, ['Z', '8457', '1751', '7497', '5503', 'r', '4833', '5143']
Output (English): 7947