Task: Program Execution
Input (English): 49, 479, m, 123
Output (English): 1, 2, 3, 4, 7, 9