Task: Program Execution
Input (English): g, O, 5035, r, J, 4979, 4551, R, e, 1669, a, i, 1229, 9171, S, 6273, 8987, r, a, 1885, D, g
Output (English): 1, 2, 4, 5, 8, 9, 11, 12, 15, 18, 19, 21, 22