Task: Program Execution
Input (English): 3, 5, ['z', 'X', 'M', 'x', '6115']
Output (English): 6115, x, M