Task: Program Execution
Input (English): U, 5821, f, Q, A, R, v, Q, Y, V, S, 6075, 4879, 9139
Output (English): 25914