Task: Program Execution
Input (English): r, G, 2125, 3235, 9763, 7589, Q, p, 121, 7345
Output (English): 30178