Task: Program Execution
Input (English): G, 7721, z, 2387, 171, 4903, d
Output (English): 7721, 2387, 171, 4903