Task: Program Execution
Input (English): 5825, d, 8881, m, 7831, x, B, 8763, N, 3923, 9791, 8471, I, T, 8573, R, V, 6125, V, 4939, 5079, Q, 7481
Output (English): 12