Task: Program Execution
Input (English): Q, 581, 961, 9137, v, 8199, k, v, 1727, E, X, N, 3067, 1479, m, B
Output (English): 17, 581, 961, 9137, 22, 8199, 11, 22, 1727, 5, 24, 14, 3067, 1479, 13, 2