Task: Program Execution
Input (English): 117, 247, 49, 63
Output (English): 1, 2, 3, 4, 6, 7, 9