Task: Program Execution
Input (English): 3487, 3289, Q, 7955, 1329, U, 5429, 2381, K
Output (English): 23870