Task: Program Execution
Input (English): 9705, 5243, D, 1403, M, 9957, K, F, 7251, 5573, 1459, 805, 8009, n, 3365
Output (English): 52770