Task: Program Execution
Input (English): a, C, 7489, 3239, Q, L, K, R, 2107, t, 1321, F, 4415, 8043, 8137
Output (English): 34751