Task: Program Execution
Input (English): 123, 479, 341, r, q
Output (English): 1, 2, 3, 4, 7, 9