Task: Program Execution
Input (English): V, p, 5739, k, 9505, 291, u, 9181, 9725, M, 3501, 9623, S, 1231, t
Output (English): 1, 2, 4, 7, 10, 13, 15