Task: Program Execution
Input (English): 3, 4, ['D', 'A', '1155', 'w', 'M']
Output (English): w, 1155