Task: Program Execution
Input (English): u, M, v, I, 4333, 5867, 1909, 8455, 3143, 5547, 3725, U, 171, 7475, I, v, B, a, 5397
Output (English): 46022