Task: Program Execution
Input (English): g, 57, a, 407, p, 193
Output (English): 0, 1, 3, 4, 5, 7, 9