Task: Program Execution
Input (English): 3001, 2871, 9999, 8435, K, 8459, r, 9613, V, C, B, I, I, 9171
Output (English): 51549