Task: Program Execution
Input (English): 2, 5, ['U', 'c', 'd', 'Q', '3901', 'p', '8995', 'u', 'w']
Output (English): c, d, Q, 3901