Task: Program Execution
Input (English): 2, ['S', '9059', '7399', '9573', 'X', '681', 'P', '7047', '5199']
Output (English): 7399, 9573, X, 681, P, 7047, 5199