Task: Program Execution
Input (English): 5, 5, ['7991', '8029', '9605', 'u', '9539', 'q', '3789', 'i', '8639', '7477']
Output (English): 9359