Task: Program Execution
Input (English): 285, N, V, 9477, p, 5131, W, T, 549, g, 5593, j, 7003, C, v, C, 1311
Output (English): 10