Task: Program Execution
Input (English): 5203, Q, 1951, 8351, C, 6711, R, w
Output (English): 22216