Task: Program Execution
Input (English): G, 4571, 5021, 3579, 3909, W, 2163, n, 3345, n, U
Output (English): 7, 4571, 5021, 3579, 3909, 23, 2163, 14, 3345, 14, 21