Task: Program Execution
Input (English): 5, 9, ['7829', 'n', 'I', '1207', '867', '5093', 'C', 'p', 'X', '8939', '6159', '6291']
Output (English): 5960