Task: Program Execution
Input (English): w, t, a, 199, 385
Output (English): 1, 3, 5, 8, 9