Task: Program Execution
Input (English): 2, 2, ['C', '1301', 'J', '9727', 'O', '9553', 'E']
Output (English): 1031