Task: Program Execution
Input (English): 5, 6, ['L', '8025', '6699', '6437', 'G', 'Q', 'H', '9831']
Output (English): Q, G