Task: Program Execution
Input (English): 67, 371
Output (English): 1, 3, 6, 7