Task: Program Execution
Input (English): 131, d, d, 231, a, 143, o, 261, 171, d, g
Output (English): 1, 2, 3, 4, 6, 7