Task: Program Execution
Input (English): 313, 23, 193, b, w, 445
Output (English): 1, 2, 3, 4, 5, 9