Task: Program Execution
Input (English): 8, ['P', '3145', 'F', '7103', 's', '765', '9335', 'N', '1187', '2477', '6613', 'H', '4555', 'N', 'Z', '2327', '7531', 'r', '8641', '6925', '9543', '3339', '1841', 'H', 'Q', 'p', '5951', '5509', '8555', '8131', 'I', '9849', 'O', '1497', 'g']
Output (English): P, 1187, 7531, Q, O