Task: Program Execution
Input (English): r, 6643, b, Q, U, H, 5179, 9249, 429, 2967
Output (English): 24467