Task: Program Execution
Input (English): R, p, 5767, D, 4851, J, C, w, a, r, E, 6311, g, 4419, r, q
Output (English): 1, 2, 4, 6, 7, 8, 9, 10, 11, 13, 15, 16