Task: Program Execution
Input (English): 487, 15, 351, 215, 477
Output (English): 1, 2, 3, 4, 5, 7, 8