Task: Program Execution
Input (English): V, c, 7359, 1597, 4037, K, T, J, v, i, I, D, Z, 5537, 57, I
Output (English): 18587