Task: Program Execution
Input (English): 251, 481, w, w, 259, 311, 249
Output (English): 1, 2, 3, 4, 5, 8, 9