Task: Program Execution
Input (English): 4, 5, ['H', 'M', '9631', 'd', 'Z']
Output (English): Zd