Task: Program Execution
Input (English): W, 5477, 7857, r, R, 9639, 5003, 9615, v, 1145, G, 5261, X, V
Output (English): 2, 3, 6, 7, 8, 10, 12