Task: Program Execution
Input (English): 9, 129, 467, 59, m, n, d, 107
Output (English): 0, 1, 2, 4, 5, 6, 7, 9