Task: Program Execution
Input (English): 147, 351, 185, u
Output (English): 1, 3, 4, 5, 7, 8