Task: Program Execution
Input (English): 3, ['957', '1525', 'S', 'P', '669', '8771', '9977']
Output (English): P, 669, 8771, 9977