Task: Program Execution
Input (English): 6, 13, ['3787', '8861', 'q', '1625', '4873', 'c', '4047', 'O', '8365', '5869', 'X', 'P', 'G']
Output (English): G, P, X, 5869, 8365, O, 4047, c