Task: Program Execution
Input (English): 5007, W, 3347, x, 5465, E, F, 7801, G, 9591, h, 4327
Output (English): 35538