Task: Program Execution
Input (English): K, 5585, M, 7515, 4749, I, c, g, 6563, F, 7293, X, 731
Output (English): 1, 3, 6, 7, 8, 10, 12