Task: Program Execution
Input (English): R, 5175, 6047, 2417, A, v, l, 7087, j, 4243, Z, 1763
Output (English): 6