Task: Program Execution
Input (English): e, Q, 6517, 6469, 5055, 4175, U, 6735, 87
Output (English): 29038