Task: Program Execution
Input (English): d, 107, 247, 461, q, i, g, w, 161
Output (English): 0, 1, 2, 4, 6, 7