Task: Program Execution
Input (English): X, g, 5657, O, Q, 7899, 4515, 3247
Output (English): 21318