Task: Program Execution
Input (English): 317, x
Output (English): 1, 3, 7