Task: Program Execution
Input (English): 359, n, 341
Output (English): 1, 3, 4, 5, 9