Task: Program Execution
Input (English): 3, 5, ['M', 'l', '6719', '2161', '8755']
Output (English): 17635