Task: Program Execution
Input (English): b, c, 3225, U, 947, 3287, 1325, 9451, A, 6823, B, k, 1677
Output (English): 1, 2, 4, 9, 11, 12