Task: Program Execution
Input (English): S, 3481, 4743, f, 1513, q, 4109, v, 3419, 7783, W
Output (English): 5