Task: Program Execution
Input (English): 1731, W, 1825, B, N, 2153, 5577, W
Output (English): 11286