Task: Program Execution
Input (English): 2, 2, ['9231', '223', '7281', 'M', '7501', '3489', 'O', '149']
Output (English): 322