Task: Program Execution
Input (English): 6, 10, ['U', 'I', 'c', 'P', 'P', '2143', '3731', 'R', '5849', 'u']
Output (English): 2143, 3731, R, 5849, u