Task: Program Execution
Input (English): 297, 19, 171
Output (English): 1, 2, 7, 9