Task: Program Execution
Input (English): d, 393, y, 307, s, 31, h
Output (English): 0, 1, 3, 7, 9