Task: Program Execution
Input (English): g, 159, 225, 21, g
Output (English): 1, 2, 5, 9