Task: Program Execution
Input (English): g, 3155, g, v, 7795, 1703, S, D, n, L, 9237, R, J, v, y, T, 4263, Z, 5397, 9451, 3695
Output (English): 1, 3, 4, 7, 8, 9, 10, 12, 13, 14, 15, 16, 18