Task: Program Execution
Input (English): 4, 10, ['q', '1041', 'B', '3599', '5713', 'v', 'A', '3027', '9397', 'c', '677', '8811', 'A', 'x', 'H', 'Q', 'd']
Output (English): 3599, 5713, v, A, 3027, 9397, c