Task: Program Execution
Input (English): K, v, Q, 6361, K, 4549, 3055, M, 6589, 5151, O, 3023
Output (English): 1, 2, 3, 5, 8, 11