Task: Program Execution
Input (English): 3, 5, ['z', '3471', 'H', '3703', 'M']
Output (English): M3073H