Task: Program Execution
Input (English): A, 7707, 4277, 9419, F, x, 9251, C, 8543, m, 1421, W
Output (English): 40618