Task: Program Execution
Input (English): R, S, 871, 6885, 5605, i, x, 947, 8903, 3765, y, w
Output (English): 1, 2, 6, 7, 11, 12