Task: Program Execution
Input (English): 2, 3, ['9177', 'y', 'Q', '8603', '3231', 'D', '471']
Output (English): y, Q