Task: Program Execution
Input (English): 2, 3, ['L', '8291', '3845', 'H', '2181', '111', 'Q', '7731', '7119', 'E', 'q']
Output (English): 8291, 2181, 7731, q