Task: Program Execution
Input (English): y, B, 2517, S, D, 6731, N, u, i, 3603, 1863, v, 4145
Output (English): 18859