Task: Program Execution
Input (English): 187, 119, 377, 23
Output (English): 1, 2, 3, 7, 8, 9