Task: Program Execution
Input (English): w, v, s, 231, 497, w, f
Output (English): 1, 2, 3, 4, 7, 9