Task: Program Execution
Input (English): V, 2371, B, 9871, 2515, 8175, 7287
Output (English): 30219