Task: Program Execution
Input (English): F, x, 8061, 6871, c, 5749, M, 1119, 9111, 7035, a, 1901, D
Output (English): 39847