Task: Program Execution
Input (English): 3, 3, ['M', 'c', 'd']
Output (English): d