Task: Program Execution
Input (English): 365, 41
Output (English): 1, 3, 4, 5, 6