Task: Program Execution
Input (English): Q, H, A, h, 9539, b, 5501, x, Q, D, X, 8209, I, 9991, 4885, G, 6853, R, c, 2947, 9877, 1909, 5557, S
Output (English): 1, 2, 3, 4, 6, 8, 9, 10, 11, 13, 16, 18, 19, 24