Task: Program Execution
Input (English): 51, 497
Output (English): 1, 4, 5, 7, 9