Task: Program Execution
Input (English): g, K, 9799, W, 9413, 4517, 3957, p, 7347, y, o, D
Output (English): 9799, 9413, 4517, 3957, 7347