Task: Program Execution
Input (English): g, 221, x, 407, d, 355, c, z
Output (English): 0, 1, 2, 3, 4, 5, 7