Task: Program Execution
Input (English): 6, 10, ['U', 'm', 'G', '4887', 'n', '4721', 'Q', 'W', '4501', 'P']
Output (English): P, 4501, W, Q, 4721