Task: Program Execution
Input (English): 3, 7, ['5927', 'I', 'x', '6651', '4013', '119', 'M', 'j', 'n', '1169', '467', '449', 'O', 'Z', '8737', '1261']
Output (English): 10783