Task: Program Execution
Input (English): B, Z, 3501, 9037, i, 387, 1081, 7111, 2817, 1949, M, l, 1673, u, 8145, K, I, M
Output (English): 1, 2, 5, 11, 12, 14, 16, 17, 18