Task: Program Execution
Input (English): A, 41, V, 1371, 5257, 4521, 7521, 9697, 733, 7331
Output (English): 2