Task: Program Execution
Input (English): 2, 2, ['U', '5287', 'Z', '6577']
Output (English): 5287