Task: Program Execution
Input (English): 7, 10, ['q', 'X', 'Y', '9863', 'N', '8697', 'p', '3301', 'w', 'Q']
Output (English): p, 3301, w, Q