Task: Program Execution
Input (English): 10, 12, ['M', '8291', 'X', 'J', 'q', 'K', '7163', '2927', 'N', '5965', 'G', '7673', '9703', '3673', '8023']
Output (English): 5965G7673