Task: Program Execution
Input (English): a, 347, 311, 55, v, b, 331
Output (English): 1, 3, 4, 5, 7