Task: Program Execution
Input (English): A, 4087, 111, 3507, R, V, A, c, t, 9845, 5037, 873, 41, 3873, e, f, 2083, 1709, h, E, b, 7461, 6841
Output (English): 12