Task: Program Execution
Input (English): q, 3453, Z, 8553, 3227, U, X, a, 6059, 8507, 6953, P
Output (English): 36752