Task: Program Execution
Input (English): m, 399, 461, e, n
Output (English): 1, 3, 4, 6, 9