Task: Program Execution
Input (English): 4, 7, ['s', 'X', 'g', '3083', '3409', 'E', '9479', 'v', '9953', 'g', '1671', '787']
Output (English): 15971