Task: Program Execution
Input (English): 2, 2, ['683', 'Q', 'X', 'k', '1123', 'Q', 'M', 'G', 'P', '7985']
Output (English): Q, k, Q, G, 7985