Task: Program Execution
Input (English): G, 9767, 3579, 1997, e, Q, 6609, 3583, B, O, P, J
Output (English): 7