Task: Program Execution
Input (English): 39, 461, 163, 379, 331, 137, g, m
Output (English): 1, 3, 4, 6, 7, 9