Task: Program Execution
Input (English): z, G, 4605, C, 3187, 575, 9723, 4529, 6805, G
Output (English): z, G, C, G