Task: Program Execution
Input (English): 3945, N, 8333, s, W, 3685, O, B
Output (English): 2, 4, 5, 7, 8