Task: Program Execution
Input (English): Y, 4487, 5463, g, 7365, x, Z, 7123, 5215, c, 5591, 1955, r, 8589, 8301, 7427, S
Output (English): 4487, 5463, 7365, 7123, 5215, 5591, 1955, 8589, 8301, 7427