Task: Program Execution
Input (English): 9821, w, 5147, 3201, 1309, 7223, h, B
Output (English): 26701