Task: Program Execution
Input (English): g, 6139, 2535, 9107, n, U, q, I, p, 485, 2849, z
Output (English): 21115