Task: Program Execution
Input (English): R, 5031, 2291, G, u, 9967, R, 5359, 8967, 5339, 3063, 9643, v, s, 1815, 5897, f, P, S
Output (English): 2, 3, 6, 8, 9, 10, 11, 12, 15, 16