Task: Program Execution
Input (English): 8, ['n', 'A', '5259', '4397', '9473', '231', '7639', 'H', 'Q', '865', 'Q', '3125', '7569', 'a', 'c', '2153', 'I', '3291', 'G', '8057']
Output (English): Q, 865, Q, 3125, 7569, a, c, 2153, I, 3291, G, 8057