Task: Program Execution
Input (English): 5, 8, ['2983', 'L', '8975', '331', '6105', '5827', '15', 'M', '5651', 'a', 'H', '2975', 'I', 'q']
Output (English): 6105, 5827, 15, M