Task: Program Execution
Input (English): I, 31, q, 7647, 5921, 4439, Q, 8305, 5169, a, X, W, L, 7031, 1313, 8443, g
Output (English): 1, 3, 7, 10, 11, 12, 13, 17