Task: Program Execution
Input (English): W, 605, p, a, 4185, 3381, 9811, 2551, 4119, S, 8899, 9597, 1681, g, s
Output (English): 605, 4185, 3381, 9811, 2551, 4119, 8899, 9597, 1681