Task: Program Execution
Input (English): R, 5231, A, A, 5689, N, 8559
Output (English): 18, 5231, 1, 1, 5689, 14, 8559