Task: Program Execution
Input (English): Y, 7297, 5871, V, 3077, u, 6983, w, Z, n, 1321, w, N, 3215, I, 603, 3805, 3461, R, 351, 2029, 5577
Output (English): 10