Task: Program Execution
Input (English): 2, 4, ['M', 'C', '1761', 'J', 'Q', 'H', '7989', '829', '345']
Output (English): J, 1761, C