Task: Program Execution
Input (English): 149, 39
Output (English): 1, 3, 4, 9