Task: Program Execution
Input (English): 2945, 9931, 6337, x, M, 3259, X, B, M, X, 1803, 2729, 4977, k
Output (English): 4, 5, 7, 8, 9, 10, 14