Task: Program Execution
Input (English): Z, 9617, K, 2243, 1181, 355, D, 5029, f, 1813, 9997, K, b, B, 7093, C, 5007, 8727, h, k, X, 9769, 8733, 2497
Output (English): 2, 4, 5, 6, 8, 10, 11, 15, 17, 18, 22, 23, 24