Task: Program Execution
Input (English): A, 357, A, 3441, b, v
Output (English): 1, 357, 1, 3441, 2, 22