Task: Program Execution
Input (English): 7613, q, 8155, H, 8519, r, 957, 6257, 4089, Q
Output (English): 35590