Task: Program Execution
Input (English): 3, 5, ['M', '7577', '385', '143', 'G']
Output (English): 385143G