Task: Program Execution
Input (English): Q, C, 2595, 2791, 1449, 8829, r, 6963, 991, 8779, R
Output (English): 32397