Task: Program Execution
Input (English): 369, 13, g
Output (English): 1, 3, 6, 9