Task: Program Execution
Input (English): 107, 175, 311, v, 421
Output (English): 0, 1, 2, 3, 4, 5, 7