Task: Program Execution
Input (English): 3191, O, k, V, 2701, T, 7787
Output (English): 2, 3, 4, 6