Task: Program Execution
Input (English): 2, 3, ['Z', '4389', 'M']
Output (English): M, 4389