Task: Program Execution
Input (English): X, 7517, c, 2763, 4057, 9563, Q
Output (English): 23900