Task: Program Execution
Input (English): w, 265, 87, t, p, 31, g
Output (English): 1, 2, 3, 5, 6, 7, 8