Task: Program Execution
Input (English): 3, 5, ['9633', 'S', '8873', '8635', '1225', 'M', '8905']
Output (English): 122586358873