Task: Program Execution
Input (English): 1, ['4677', 'q', 'S', '1931', '6369', '1787', 'w']
Output (English): 4677