Task: Program Execution
Input (English): 2, ['3933', '3147', 'S', '8599', '5507']
Output (English): 3933, 3147