Task: Program Execution
Input (English): F, 8747, M, 7289, 1443, f, b
Output (English): 17479