Task: Program Execution
Input (English): b, W, J, h, 9331, 2833, 5527, 3217, 1975, 1781, 6781, W, A, 1621, 4421
Output (English): 9