Task: Program Execution
Input (English): A, V, j, A, 1215, 7509, 1863, 8855, S, B, S, 5507
Output (English): 1, 22, 10, 1, 1215, 7509, 1863, 8855, 19, 2, 19, 5507