Task: Program Execution
Input (English): 2387, f, x, v, 8565, Q, 9119, 561
Output (English): 20632