Task: Program Execution
Input (English): 8501, 2691, S, 8217, x, 9307, N, 7873, 8653, 1867, g, 6855, 197, S, 1957
Output (English): 3, 5, 7, 11, 14